diff --git a/nginx/sites-available/status.zzls.xyz.conf b/nginx/sites-available/status.zzls.xyz.conf new file mode 100644 index 0000000..a7309ec --- /dev/null +++ b/nginx/sites-available/status.zzls.xyz.conf @@ -0,0 +1,33 @@ +server { + access_log /var/log/nginx/status.zzls.xyz.log combined; + + server_name status.zzls.xyz; + include configs/general.conf; + include configs/securityheaders.conf; + + location / { + proxy_pass http://127.0.0.1:41030/; + include configs/proxyheaders.conf; + } + + # QUIC + add_header Alt-Svc 'h3=":443"; ma=86400'; + + listen 443 http3; + listen 443 http2 ssl; # managed by Certbot + ssl_certificate /etc/letsencrypt/live/status.zzls.xyz/fullchain.pem; # managed by Certbot + ssl_certificate_key /etc/letsencrypt/live/status.zzls.xyz/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 + +} +server { + if ($host = status.zzls.xyz) { + return 301 https://$host$request_uri; + } # managed by Certbot + + server_name status.zzls.xyz; + + listen 80; + return 404; # managed by Certbot + }