Skip to content

Commit 2ac8d2a

Browse files
committed
debug
1 parent 04365f9 commit 2ac8d2a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

proxy.nginx

+13
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,20 @@ server {
2626
# Proxy headers. Will be overwritten if you set them in blocks.
2727
proxy_buffers 16 32k;
2828
proxy_buffer_size 32k;
29+
proxy_pass_header Nav-Callid;
30+
proxy_set_header Referer $http_referer;
31+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
32+
proxy_set_header X-Real-IP $remote_addr;
33+
34+
# complete disable cache and send some debug headers
35+
add_header X-Cache-Status $upstream_cache_status;
36+
add_header X-Application-Id "${APP_NAME}:${APP_VERSION}, pod=${APP_HOSTNAME}";
37+
add_header Content-Security-Policy "default-src 'self'; img-src 'self' data:; font-src 'self' https://cdn.nav.no data:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline'; connect-src 'self' https://sentry.gc.nav.no";
38+
add_header X-Content-Type-Options "nosniff";
39+
add_header X-XSS-Protection "1;mode=block";
40+
add_header Strict-Transport-Security "max-age=31536000";
2941

42+
add_header Cache-Control $custom_cache_control;
3043

3144
location = /k9/feature-toggle/toggles.json {
3245
add_header Content-Type application/json;

0 commit comments

Comments
 (0)