diff --git a/Taskfile.yaml b/Taskfile.yaml index a2f2171..bafdfb2 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -6,6 +6,11 @@ vars: GREETING: Hello, World! tasks: + deploy: + deps: [build] + cmds: + - rsync -av build/ bggsell@gilgamesh:public_html + build: cmds: - vite build diff --git a/contrib/nginx-bggsell.conf b/contrib/nginx-bggsell.conf new file mode 100644 index 0000000..eabd1fe --- /dev/null +++ b/contrib/nginx-bggsell.conf @@ -0,0 +1,20 @@ +server { + listen 443; + listen [::]:443; + + ssl_certificate /etc/lego/certificates/_.babyl.ca.crt; + ssl_certificate_key /etc/lego/certificates/_.babyl.ca.key; + + server_name bgg.babyl.ca; + + access_log /var/log/nginx/bgg.log; + error_log /var/log/nginx/bgg-error.log; + + client_max_body_size 10M; + + root /home/bggsell/public_html; + index index.html; + location / { + try_files $uri $uri/ $uri.html /index.html =404; + } +}