@@ -3,7 +3,6 @@ access_log off;
3
3
error_log /dev/stdout info;
4
4
charset utf-8;
5
5
6
-
7
6
client_body_buffer_size 20M ; # Default er satt veldig lavt. Får problemer med enkelte dokument queries.
8
7
9
8
# Expires map
@@ -23,6 +22,7 @@ map $upstream_http_cache_control $custom_cache_control {
23
22
server {
24
23
listen "${APP_PORT}" ;
25
24
server_name "${APP_HOSTNAME}" ;
25
+
26
26
# Proxy headers. Will be overwritten if you set them in blocks.
27
27
proxy_buffers 16 32k ;
28
28
proxy_buffer_size 32k ;
@@ -41,12 +41,12 @@ server {
41
41
42
42
add_header Cache-Control $custom_cache_control ;
43
43
44
+ # Health check for NAIS
44
45
location = /k9/feature-toggle/toggles.json {
45
46
add_header Content-Type application/json;
46
47
root /tmp/;
47
48
}
48
49
49
- # Health check for NAIS
50
50
location = /isAlive {
51
51
return 200 "Application:UP" ;
52
52
add_header Content-Type text/plain;
@@ -58,8 +58,8 @@ server {
58
58
add_header Content-Type text/plain;
59
59
}
60
60
61
-
62
61
location "/k9/sak/" {
62
+ proxy_set_header Host $http_host ;
63
63
proxy_pass "${APP_URL}" ;
64
64
proxy_intercept_errors on ;
65
65
error_page 401 = @401_json;
@@ -69,6 +69,7 @@ server {
69
69
}
70
70
71
71
location "/k9/formidling/" {
72
+ proxy_set_header Host $http_host ;
72
73
proxy_pass "${APP_URL_K9FORMIDLING}" ;
73
74
proxy_intercept_errors on ;
74
75
error_page 401 = @401_json;
@@ -78,6 +79,7 @@ server {
78
79
}
79
80
80
81
location "/k9/formidling/dokumentdata" {
82
+ proxy_set_header Host $http_host ;
81
83
proxy_pass "${APP_URL_K9FORMIDLING_DD}" ;
82
84
proxy_intercept_errors on ;
83
85
error_page 401 = @401_json;
@@ -87,6 +89,7 @@ server {
87
89
}
88
90
89
91
location "/k9/oppdrag/" {
92
+ proxy_set_header Host $http_host ;
90
93
proxy_pass "${APP_URL_K9OPPDRAG}" ;
91
94
proxy_intercept_errors on ;
92
95
error_page 401 = @401_json;
@@ -96,6 +99,7 @@ server {
96
99
}
97
100
98
101
location "/k9/klage/" {
102
+ proxy_set_header Host $http_host ;
99
103
proxy_pass "${APP_URL_KLAGE}" ;
100
104
proxy_intercept_errors on ;
101
105
error_page 401 = @401_json;
@@ -105,6 +109,7 @@ server {
105
109
}
106
110
107
111
location "/k9/tilbake/" {
112
+ proxy_set_header Host $http_host ;
108
113
proxy_pass "${APP_URL_K9TILBAKE}" ;
109
114
proxy_intercept_errors on ;
110
115
error_page 401 = @401_json;
@@ -114,6 +119,7 @@ server {
114
119
}
115
120
116
121
location "/k9/fordel/" {
122
+ proxy_set_header Host $http_host ;
117
123
proxy_pass "${APP_URL_K9FORDEL}" ;
118
124
proxy_intercept_errors on ;
119
125
error_page 401 = @401_json;
0 commit comments