Skip to content

Commit

Permalink
proxy host
Browse files Browse the repository at this point in the history
  • Loading branch information
vebnor committed Mar 8, 2024
1 parent f72e3b3 commit 182d8f4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions proxy.nginx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ access_log off;
error_log /dev/stdout info;
charset utf-8;


client_body_buffer_size 20M; # Default er satt veldig lavt. Får problemer med enkelte dokument queries.

# Expires map
Expand All @@ -23,6 +22,7 @@ map $upstream_http_cache_control $custom_cache_control {
server {
listen "${APP_PORT}";
server_name "${APP_HOSTNAME}";

# Proxy headers. Will be overwritten if you set them in blocks.
proxy_buffers 16 32k;
proxy_buffer_size 32k;
Expand All @@ -41,12 +41,12 @@ server {

add_header Cache-Control $custom_cache_control;

# Health check for NAIS
location = /k9/feature-toggle/toggles.json {
add_header Content-Type application/json;
root /tmp/;
}

# Health check for NAIS
location = /isAlive {
return 200 "Application:UP";
add_header Content-Type text/plain;
Expand All @@ -58,8 +58,8 @@ server {
add_header Content-Type text/plain;
}


location "/k9/sak/" {
proxy_set_header Host $http_host;
proxy_pass "${APP_URL}";
proxy_intercept_errors on;
error_page 401 = @401_json;
Expand All @@ -69,6 +69,7 @@ server {
}

location "/k9/formidling/" {
proxy_set_header Host $http_host;
proxy_pass "${APP_URL_K9FORMIDLING}";
proxy_intercept_errors on;
error_page 401 = @401_json;
Expand All @@ -78,6 +79,7 @@ server {
}

location "/k9/formidling/dokumentdata" {
proxy_set_header Host $http_host;
proxy_pass "${APP_URL_K9FORMIDLING_DD}";
proxy_intercept_errors on;
error_page 401 = @401_json;
Expand All @@ -87,6 +89,7 @@ server {
}

location "/k9/oppdrag/" {
proxy_set_header Host $http_host;
proxy_pass "${APP_URL_K9OPPDRAG}";
proxy_intercept_errors on;
error_page 401 = @401_json;
Expand All @@ -96,6 +99,7 @@ server {
}

location "/k9/klage/" {
proxy_set_header Host $http_host;
proxy_pass "${APP_URL_KLAGE}";
proxy_intercept_errors on;
error_page 401 = @401_json;
Expand All @@ -105,6 +109,7 @@ server {
}

location "/k9/tilbake/" {
proxy_set_header Host $http_host;
proxy_pass "${APP_URL_K9TILBAKE}";
proxy_intercept_errors on;
error_page 401 = @401_json;
Expand All @@ -114,6 +119,7 @@ server {
}

location "/k9/fordel/" {
proxy_set_header Host $http_host;
proxy_pass "${APP_URL_K9FORDEL}";
proxy_intercept_errors on;
error_page 401 = @401_json;
Expand Down

0 comments on commit 182d8f4

Please sign in to comment.