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

20 lines
499 B
Plaintext

server {
listen 8080;
root /usr/share/nginx/html;
location = /healthz { return 200; }
location /api/admin/ {
proxy_pass ${ATLAS_GATEWAY_URL};
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /assets/ {
try_files $uri =404;
add_header Cache-Control "public, max-age=31536000, immutable";
}
location / {
add_header Cache-Control "no-cache";
try_files $uri /index.html;
}
}