Files
2026-07-11 13:23:40 +03:00

29 lines
708 B
Nginx Configuration File

server {
listen 3000;
root /usr/share/nginx/html;
index index.html;
gzip on;
gzip_types text/css application/javascript application/json image/svg+xml;
# Runtime-editable: entrypoint-generated env config and the mounted
# data/ volume must never be served from cache.
location = /config.js {
add_header Cache-Control "no-store";
}
location /data/ {
alias /app/data/;
add_header Cache-Control "no-store";
}
# Content-hashed build output is safe to cache forever.
location /assets/ {
add_header Cache-Control "public, max-age=31536000, immutable";
}
location / {
try_files $uri $uri/ /index.html;
}
}