Add immutable revisions, PGVN editor, asset replacement, merge and rebase workflows, authenticated media delivery and reachability GC. Harden the script interpreter, pin unrpyc and remove tracked build metadata. Include current compatibility checks, Naninovel import and regression tests.
57 lines
1.5 KiB
Nginx Configuration File
57 lines
1.5 KiB
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
|
|
# archives with games can be many gigabytes
|
|
client_max_body_size 0;
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
location /api/ {
|
|
proxy_pass http://backend:8000;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-PGames-Accel 1;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
|
|
proxy_request_buffering off;
|
|
proxy_read_timeout 3600s;
|
|
proxy_send_timeout 3600s;
|
|
}
|
|
|
|
location /blobs/ {
|
|
proxy_pass http://backend:8000;
|
|
proxy_set_header X-PGames-Accel 1;
|
|
}
|
|
|
|
location /_protected_blobs/ {
|
|
internal;
|
|
alias /data/blobs/;
|
|
add_header Cache-Control "private, no-cache" always;
|
|
add_header X-Content-Type-Options nosniff always;
|
|
types {
|
|
image/webp webp;
|
|
image/png png;
|
|
audio/ogg ogg;
|
|
video/webm webm;
|
|
application/json json;
|
|
font/ttf ttf;
|
|
font/otf otf;
|
|
font/woff woff;
|
|
font/woff2 woff2;
|
|
}
|
|
default_type application/octet-stream;
|
|
gzip on;
|
|
gzip_types application/json;
|
|
}
|
|
|
|
location /assets/ {
|
|
add_header Cache-Control "public, max-age=31536000, immutable";
|
|
}
|
|
|
|
location / {
|
|
try_files $uri /index.html;
|
|
add_header Cache-Control "no-cache";
|
|
}
|
|
}
|