| 1 | server { |
| 2 | listen 80; |
| 3 | listen [::]:80; |
| 4 | server_name box.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/box.meson.in.log combined if=$loggable; |
| 12 | error_log /var/log/nginx/_error_box.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 reuseport; |
| 22 | listen [::]:443 quic reuseport; |
| 23 | |
| 24 | http2 on; |
| 25 | http3 on; |
| 26 | |
| 27 | server_name box.meson.in; |
| 28 | root /var/www/box.meson.in; |
| 29 | |
| 30 | ssl_certificate /etc/letsencrypt/live/box.meson.in/fullchain.pem; |
| 31 | ssl_certificate_key /etc/letsencrypt/live/box.meson.in/privkey.pem; |
| 32 | |
| 33 | access_log /var/log/nginx/box.meson.in.log combined if=$loggable; |
| 34 | error_log /var/log/nginx/_error_box.meson.in.log warn; |
| 35 | |
| 36 | include /etc/nginx/nextcloud-common.conf; |
| 37 | } |
meson / box.meson.in
Last active 3 weeks ago