diff options
author | Starfall <us@starfall.systems> | 2024-04-29 11:12:05 -0500 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2024-04-29 11:51:47 -0500 |
commit | 43e180b9bf172655f6e729f2070a6801ba713777 (patch) | |
tree | 65764407507949553474be405e47b0399cf4c697 /www.starfall.systems | |
parent | 1612ae4ac04ba42bc993e3c9371c116fc502dc35 (diff) |
prepare repo for direct publishing
Diffstat (limited to 'www.starfall.systems')
-rw-r--r-- | www.starfall.systems | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/www.starfall.systems b/www.starfall.systems new file mode 100644 index 0000000..bf2edab --- /dev/null +++ b/www.starfall.systems @@ -0,0 +1,30 @@ +# vim: ft=nginx +server { + listen 80; + listen [::]:80; + server_name starfall.systems www.starfall.systems; + location ^~ /.well-known/acme-challenge { + alias /var/lib/dehydrated/acme_challenges/; + } + return 301 https://$host$request_uri; +} + +server { + server_name www.starfall.systems; + include /etc/nginx/snippets/ssl.conf; + return 302 https://starfall.systems$request_uri; +} + +server { + listen 443 ssl; + listen [::]:443 ssl; + server_name starfall.systems; + include /etc/nginx/snippets/ssl.conf; + + root /srv/starfall.systems/html; + try_files $uri $uri/index.html $uri.html =404; + + location ~ ^/(css/img/js/files)/ { + root /srv/starfall.systems; + } +} |