From ff45754bd8c8d4a361f95e0d520c56539b631eca Mon Sep 17 00:00:00 2001 From: qvalentin Date: Fri, 20 Nov 2020 16:00:28 +0100 Subject: [PATCH 1/3] added the missing api/ --- ReverseProxy/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ReverseProxy/nginx.conf b/ReverseProxy/nginx.conf index d9bc0eb..de29ce0 100644 --- a/ReverseProxy/nginx.conf +++ b/ReverseProxy/nginx.conf @@ -15,7 +15,7 @@ http { proxy_set_header X-Forwarded-Host $server_name; location /api { - proxy_pass http://FileFighterREST:8080/; + proxy_pass http://FileFighterREST:8080/api/; proxy_redirect off; } @@ -24,4 +24,4 @@ http { proxy_redirect off; } } -} \ No newline at end of file +} From 1720b9f82d37f32acf32874077497634c28688c2 Mon Sep 17 00:00:00 2001 From: qvalentin Date: Fri, 20 Nov 2020 19:12:57 +0100 Subject: [PATCH 2/3] added location for swagger --- ReverseProxy/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ReverseProxy/nginx.conf b/ReverseProxy/nginx.conf index de29ce0..7747edf 100644 --- a/ReverseProxy/nginx.conf +++ b/ReverseProxy/nginx.conf @@ -14,6 +14,11 @@ http { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Host $server_name; + location /api/swagger{ + proxy_pass http://FileFighterREST:8080/swagger-ui/; + proxy_redirect off; + } + location /api { proxy_pass http://FileFighterREST:8080/api/; proxy_redirect off; From f6e153310d54a6cb24f7c8dfead4498c79c8e01d Mon Sep 17 00:00:00 2001 From: open-schnick Date: Fri, 20 Nov 2020 19:45:03 +0100 Subject: [PATCH 3/3] removed swagger on prod. --- ReverseProxy/nginx.conf | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ReverseProxy/nginx.conf b/ReverseProxy/nginx.conf index 7747edf..de29ce0 100644 --- a/ReverseProxy/nginx.conf +++ b/ReverseProxy/nginx.conf @@ -14,11 +14,6 @@ http { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Host $server_name; - location /api/swagger{ - proxy_pass http://FileFighterREST:8080/swagger-ui/; - proxy_redirect off; - } - location /api { proxy_pass http://FileFighterREST:8080/api/; proxy_redirect off;