From 6403f0d05570ac704cfbb97cb8eb146529ddb9d9 Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Fri, 13 Oct 2023 16:34:01 -0300 Subject: [PATCH 1/2] debug: add upstream for presence --- nginx.conf.sigil | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nginx.conf.sigil b/nginx.conf.sigil index de2489f..05dd72c 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$uri$is_args$args/; + proxy_pass http://presence-8080/; {{ $proxy_settings }} {{ $gzip_settings }} {{ $cors_headers_options }} @@ -95,6 +95,11 @@ server { {{ end }} # Upstream setup + +upstream presence-8080 { + server 172.17.0.21:8080; +} + {{ range $upstream_port := $.PROXY_UPSTREAM_PORTS | split " " }} upstream {{ $.APP }}-{{ $upstream_port }} { {{ range $listeners := $.DOKKU_APP_WEB_LISTENERS | split " " }} From 65e04d8db2d8aa47545df14b962d41397601bbe6 Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Fri, 13 Oct 2023 16:49:04 -0300 Subject: [PATCH 2/2] debug: upstream only inbox --- nginx.conf.sigil | 5 ----- 1 file changed, 5 deletions(-) diff --git a/nginx.conf.sigil b/nginx.conf.sigil index 05dd72c..8a075fe 100644 --- a/nginx.conf.sigil +++ b/nginx.conf.sigil @@ -95,11 +95,6 @@ server { {{ end }} # Upstream setup - -upstream presence-8080 { - server 172.17.0.21:8080; -} - {{ range $upstream_port := $.PROXY_UPSTREAM_PORTS | split " " }} upstream {{ $.APP }}-{{ $upstream_port }} { {{ range $listeners := $.DOKKU_APP_WEB_LISTENERS | split " " }}