From 2b4addca3d9d7fe867ece32132e8c47c62b29f70 Mon Sep 17 00:00:00 2001 From: sharhio Date: Mon, 17 Jun 2024 15:56:05 +0300 Subject: [PATCH 1/2] DT-6312 waltti test proxy --- common.conf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common.conf b/common.conf index b7486fc..9aeeb4f 100644 --- a/common.conf +++ b/common.conf @@ -534,3 +534,12 @@ location /matka-fonts/ { # proxy_set_header X-Forwarded-Host $host; include cors.conf; } + +location /ui/waltti-test/waltti/ { + rewrite /ui/waltti-test/waltti/(.*) /$1 break; + proxy_pass http://digitransit-ui-waltti-test:8080; + proxy_redirect off; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + # proxy_set_header X-Forwarded-Host $host; +} \ No newline at end of file From 1e3ed2fca19229280205203eedb7cc68395d545c Mon Sep 17 00:00:00 2001 From: sharhio Date: Mon, 17 Jun 2024 16:09:19 +0300 Subject: [PATCH 2/2] DT-6312 waltti test proxy --- common.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common.conf b/common.conf index 9aeeb4f..bb368bd 100644 --- a/common.conf +++ b/common.conf @@ -535,8 +535,8 @@ location /matka-fonts/ { include cors.conf; } -location /ui/waltti-test/waltti/ { - rewrite /ui/waltti-test/waltti/(.*) /$1 break; +location /ui/v3/waltti-test/ { + rewrite /ui/v3/waltti-test/(.*) /$1 break; proxy_pass http://digitransit-ui-waltti-test:8080; proxy_redirect off; proxy_set_header X-Real-IP $remote_addr;