swee revised this gist 2 months ago. Go to revision
3 files changed, 34 insertions
Screenshot 2025-10-27 at 18-03-40 Unity Web Player My project (2).png(file created)
Binary file changes are not shown
nginx-on-licorice.conf(file created)
| @@ -0,0 +1,16 @@ | |||
| 1 | + | server { | |
| 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 | + | } | |
nginx-on-proxy.conf(file created)
| @@ -0,0 +1,18 @@ | |||
| 1 | + | server { | |
| 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 | + | } | |