Skip to content

Commit

Permalink
Move public to subdir.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucent committed Aug 28, 2023
1 parent 700f3e5 commit ce80706
Show file tree
Hide file tree
Showing 25 changed files with 9,433 additions and 31,390 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "public/awesomplete"]
path = public/awesomplete
url = https://github.com/LeaVerou/awesomplete
1 change: 0 additions & 1 deletion README

This file was deleted.

29 changes: 18 additions & 11 deletions apache-conf/color.brick.design.conf
Original file line number Diff line number Diff line change
@@ -1,37 +1,44 @@
<VirtualHost 45.79.10.213:80 [2600:3c00::f03c:91ff:fe9f:6a46]:80>
<IfModule mod_ssl.c>
<VirtualHost 45.79.10.213:443 [2600:3c00::f03c:91ff:fe9f:6a46]:443>
ServerName color.brick.design

CustomLog /var/log/apache2/color-brick-design.log combined
AddDefaultCharset UTF-8
SetEnv no-gzip 1

ServerAdmin webmaster@localhost
ServerAdmin [email protected]

DocumentRoot /var/www/lego-colorblind
<Directory /var/www/lego-colorblind/.git>
Require all denied
</Directory>
DocumentRoot /var/www/lego-colorblind/public
<Directory />
SetOutputFilter DEFLATE
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/lego-colorblind>
<Directory /var/www/lego-colorblind/public>
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ([\d-]+) index.php?set=$1 [L]
</Directory>
<Directory /var/www/lego-colorblind/cache>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule set_autocomplete_list.json ../php/sets_to_autocomplete_list.php [L]
RewriteRule set_autocomplete_list.json ../server/sets_to_autocomplete_list.php [L]
</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
RewriteEngine On
RewriteCond %{SERVER_NAME} =color.brick.design
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/color.brick.design/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/color.brick.design/privkey.pem
</VirtualHost>
</IfModule>

<VirtualHost 45.79.10.213:80 [2600:3c00::f03c:91ff:fe9f:6a46]:80>
ServerName color.brick.design

Redirect permanent / https://color.brick.design/
</VirtualHost>
12 changes: 9 additions & 3 deletions data/colors.csv
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ id,name,rgb,is_trans
1001,Medium Violet,9391E4,f
1002,Glitter Trans-Neon Green,C0F500,t
1003,Glitter Trans-Light Blue,68BCC5,t
1004,Trans Flame Yellowish Orange,FCB76D,t
1005,Trans Fire Yellow,FBE890,t
1006,Trans Light Royal Blue,B4D4F7,t
1004,Trans-Flame Yellowish Orange,FCB76D,t
1005,Trans-Fire Yellow,FBE890,t
1006,Trans-Light Royal Blue,B4D4F7,t
1007,Reddish Lilac,8E5597,f
1008,Vintage Blue,039CBD,f
1009,Vintage Green,1E601E,f
Expand Down Expand Up @@ -182,4 +182,10 @@ id,name,rgb,is_trans
1054,Trans-Medium Reddish Violet Opal,CE1D9B,t
1055,Trans-Clear Opal,FCFCFC,t
1056,Trans-Brown Opal,583927,t
1057,Trans-Light Bright Green,C9E788,t
1058,Trans-Light Green,94E5AB,t
1059,Trans-Purple Opal,8320B7,t
1060,Trans-Green Opal,84B68D,t
1061,Trans-Dark Blue Opal,0020A0,t
1062,Vibrant Yellow,EBD800,f
9999,[No Color/Any Color],05131D,f
24,816 changes: 0 additions & 24,816 deletions data/pieces.csv

This file was deleted.

161 changes: 0 additions & 161 deletions data/pieces_order.tsv

This file was deleted.

Loading

0 comments on commit ce80706

Please sign in to comment.