From 18f333255d843feb9d0cad7638d0b1a277f0c7b7 Mon Sep 17 00:00:00 2001 From: ntr Date: Thu, 5 Oct 2023 18:58:49 +1100 Subject: [PATCH] add strix --- nginx/spacerace.systems.nginx.conf | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/nginx/spacerace.systems.nginx.conf b/nginx/spacerace.systems.nginx.conf index 84b0966..9ac28a4 100644 --- a/nginx/spacerace.systems.nginx.conf +++ b/nginx/spacerace.systems.nginx.conf @@ -43,3 +43,35 @@ server { server_name spacerace.systems; return 301 https://$host$request_uri; } + +server { + server_name strix.systems; + + gzip on; + gzip_vary on; + gzip_proxied any; + gzip_comp_level 6; + gzip_types text/plain text/css text/xml application/json application/javascript application/xml+rss application/atom+xml image/svg+xml; + + location / { + root /srv/ntr; + index index.html; + try_files $uri $uri/ index.html; + } + + error_page 404 /; + + listen [::]:443 ssl ipv6only=on; # managed by Certbot + listen 443 ssl; # managed by Certbot + ssl_certificate /etc/letsencrypt/live/strix.systems/fullchain.pem; # managed by Certbot + ssl_certificate_key /etc/letsencrypt/live/strix.systems/privkey.pem; # managed by Certbot + include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot + ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot +} + +# http -> https +server { + server_name strix.systems; + return 301 https://$host$request_uri; +} +