From f928cd26b15bba9a62c9cf4768bf6a6112857fd0 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Sun, 4 Feb 2024 13:02:59 -0500 Subject: [PATCH] add deploy task --- Taskfile.yaml | 5 +++++ contrib/nginx-bggsell.conf | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 contrib/nginx-bggsell.conf 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; + } +}