item-atlas/apps/pc/nginx.conf.template

23 lines
724 B
Plaintext

server {
listen 8080;
root /usr/share/nginx/html;
location = /healthz { return 200; }
location /api/ {
proxy_pass ${ATLAS_GATEWAY_URL};
proxy_ssl_server_name on;
proxy_set_header Host $proxy_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 80s;
}
location /assets/ {
try_files $uri =404;
add_header Cache-Control "public, max-age=31536000, immutable";
}
location / {
add_header Cache-Control "no-cache";
add_header Content-Security-Policy "default-src 'self'; style-src 'self' 'unsafe-inline'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'";
try_files $uri /index.html;
}
}