Last active 2 months ago

nginx-on-licorice.conf Raw
1server {
2 listen 80;
3 listen [::]:80;
4 server_name play.swee.codes;
5 root /mnt/hdd/play;
6 index index.html;
7 brotli on;
8 brotli_static on;
9 gzip on;
10 gzip_static on;
11 try_files $uri $uri.html $uri/ =404;
12 location /edu {
13 auth_basic "School purposes only!";
14 auth_basic_user_file /etc/nginx/htpasswd.edu;
15 }
16}
17
nginx-on-proxy.conf Raw
1server {
2 listen 80;
3 listen [::]:80;
4 listen 443 ssl;
5 listen [::]:443 ssl;
6 listen 443 quic;
7 listen [::]:443 quic;
8 server_name play.swee.codes;
9 location / {
10 proxy_pass http://100.116.171.11;
11 proxy_set_header Host $host;
12 proxy_http_version 1.1;
13 }
14 ssl_certificate /etc/letsencrypt/live/play.swee.codes/fullchain.pem; # managed by Certbot
15 ssl_certificate_key /etc/letsencrypt/live/play.swee.codes/privkey.pem; # managed by Certbot
16 include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
17 ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
18}