From d5e1531dbf6f0c87a595e48ec8b254960b82c0d4 Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Fri, 13 Oct 2023 11:40:24 -0300 Subject: [PATCH 1/5] debug: location connection on docker address --- nginx.conf.sigil | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx.conf.sigil b/nginx.conf.sigil index 8a075fe..ba3f491 100644 --- a/nginx.conf.sigil +++ b/nginx.conf.sigil @@ -56,7 +56,7 @@ server { # Custom location block for /connect location /connect { - proxy_pass http://presence-8080/; + proxy_pass http://presence.web:8080/; {{ $proxy_settings }} {{ $gzip_settings }} {{ $cors_headers_options }} From 942ef67742d3280d0e7da6f7ed4215efb08a4a0c Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Fri, 13 Oct 2023 11:43:12 -0300 Subject: [PATCH 2/5] debug: location /connect presence-8080 --- nginx.conf.sigil | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx.conf.sigil b/nginx.conf.sigil index ba3f491..8a075fe 100644 --- a/nginx.conf.sigil +++ b/nginx.conf.sigil @@ -56,7 +56,7 @@ server { # Custom location block for /connect location /connect { - proxy_pass http://presence.web:8080/; + proxy_pass http://presence-8080/; {{ $proxy_settings }} {{ $gzip_settings }} {{ $cors_headers_options }} From 5ddeca78fe0b1adb8de2b89f640cbab321133be3 Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Fri, 13 Oct 2023 12:17:45 -0300 Subject: [PATCH 3/5] debug: location /connect without cors --- nginx.conf.sigil | 3 --- 1 file changed, 3 deletions(-) diff --git a/nginx.conf.sigil b/nginx.conf.sigil index 8a075fe..0f4e728 100644 --- a/nginx.conf.sigil +++ b/nginx.conf.sigil @@ -59,9 +59,6 @@ server { proxy_pass http://presence-8080/; {{ $proxy_settings }} {{ $gzip_settings }} - {{ $cors_headers_options }} - {{ $cors_headers_post }} - {{ $cors_headers_get }} } # Error pages From de1261cd47b10cb3ad8b8a8fb77e625dd8b29713 Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Fri, 13 Oct 2023 12:41:13 -0300 Subject: [PATCH 4/5] debug: location /connect with cors --- nginx.conf.sigil | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nginx.conf.sigil b/nginx.conf.sigil index 0f4e728..8a075fe 100644 --- a/nginx.conf.sigil +++ b/nginx.conf.sigil @@ -59,6 +59,9 @@ server { proxy_pass http://presence-8080/; {{ $proxy_settings }} {{ $gzip_settings }} + {{ $cors_headers_options }} + {{ $cors_headers_post }} + {{ $cors_headers_get }} } # Error pages From 276711a59fa89818793791486ea387ea8b042a31 Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Fri, 13 Oct 2023 13:09:16 -0300 Subject: [PATCH 5/5] debug: proxy_pass with uri --- nginx.conf.sigil | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx.conf.sigil b/nginx.conf.sigil index 8a075fe..de2489f 100644 --- a/nginx.conf.sigil +++ b/nginx.conf.sigil @@ -56,7 +56,7 @@ server { # Custom location block for /connect location /connect { - proxy_pass http://presence-8080/; + proxy_pass http://presence-8080$uri$is_args$args/; {{ $proxy_settings }} {{ $gzip_settings }} {{ $cors_headers_options }}