Screenshot 2025-10-27 at 18-03-40 Unity Web Player My project (2).png
· 52 KiB · Image (PNG)
Raw
nginx-on-licorice.conf
· 424 B · Text
Raw
server {
listen 80;
listen [::]:80;
server_name play.swee.codes;
root /mnt/hdd/play;
index index.html;
brotli on;
brotli_static on;
gzip on;
gzip_static on;
try_files $uri $uri.html $uri/ =404;
location /edu {
auth_basic "School purposes only!";
auth_basic_user_file /etc/nginx/htpasswd.edu;
}
}
| 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 | } |
| 17 |
nginx-on-proxy.conf
· 704 B · Text
Raw
server {
listen 80;
listen [::]:80;
listen 443 ssl;
listen [::]:443 ssl;
listen 443 quic;
listen [::]:443 quic;
server_name play.swee.codes;
location / {
proxy_pass http://100.116.171.11;
proxy_set_header Host $host;
proxy_http_version 1.1;
}
ssl_certificate /etc/letsencrypt/live/play.swee.codes/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/play.swee.codes/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
}
| 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 | } |