19 lines
748 B
Plaintext
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"; }
|
|
}
|