meson / nus.meson.in

Last active 3 weeks ago

Like 0

meson revised this gist 3 weeks ago · 40306cb

1 file changed, 37 insertions

nus.meson.in (file created)
@@ -0,0 +1,37 @@
1 + server {
2 + listen 80;
3 + listen [::]:80;
4 + server_name nus.meson.in;
5 +
6 + server_tokens off;
7 +
8 + # Enforce HTTPS
9 + return 301 https://$server_name$request_uri;
10 +
11 + access_log /var/log/nginx/nus.meson.in.log combined if=$loggable;
12 + error_log /var/log/nginx/_error_nus.meson.in.log warn;
13 + }
14 +
15 + server {
16 + # HTTP/2 over TCP
17 + listen 443 ssl;
18 + listen [::]:443 ssl;
19 +
20 + # HTTP/3 over QUIC/UDP
21 + listen 443 quic;
22 + listen [::]:443 quic;
23 +
24 + http2 on;
25 + http3 on;
26 +
27 + server_name nus.meson.in;
28 + root /var/www/nus.meson.in;
29 +
30 + ssl_certificate /etc/letsencrypt/live/nus.meson.in/fullchain.pem;
31 + ssl_certificate_key /etc/letsencrypt/live/nus.meson.in/privkey.pem;
32 +
33 + access_log /var/log/nginx/nus.meson.in.log combined if=$loggable;
34 + error_log /var/log/nginx/_error_nus.meson.in.log warn;
35 +
36 + include /etc/nginx/nextcloud-common.conf;
37 + }