Files
adcloud-advertiser-console/deploy/default.conf.template
T
codex-bot d64eb72ff2
Advertiser console CI and test deployment / build-deploy (push) Has been cancelled
Build advertiser console with scoped page URLs and runner-based deployment tests
2026-09-16 15:00:52 +08:00

19 lines
748 B
Plaintext

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
add_header X-Content-Type-Options nosniff always;
add_header X-Frame-Options DENY always;
add_header Referrer-Policy strict-origin-when-cross-origin always;
location = /healthz { access_log off; return 200 'ok'; }
location /v1/advertiser/ {
proxy_pass ${API_UPSTREAM};
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 30s;
add_header Cache-Control "no-store" always;
}
location /assets/ { try_files $uri =404; expires 1y; add_header Cache-Control "public, immutable"; }
location / { try_files $uri $uri/ /index.html; add_header Cache-Control "no-cache"; }
}