Files
adcloud-advertiser-console/deploy/default.conf.template
T
codex-bot 8d319fb34e
Advertiser console CI and test deployment / build-deploy (push) Failing after 1m4s
Validate candidate pages before public ingress and deployment checks
2026-09-16 15:21:08 +08:00

21 lines
855 B
Plaintext

server {
listen 80;
# Loopback-only listener for the CI browser sharing this container network.
listen 127.0.0.1:5173;
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"; }
}