From 033427d65882ea308559799cce784b6105928c24 Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Wed, 18 Oct 2023 08:06:56 -0300 Subject: [PATCH] feat: no upstream --- nginx.conf.sigil | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/nginx.conf.sigil b/nginx.conf.sigil index 2a299aa..02267c3 100644 --- a/nginx.conf.sigil +++ b/nginx.conf.sigil @@ -47,7 +47,7 @@ server { # Default location block location / { - proxy_pass http://{{ $.APP }}-{{ $upstream_port }}; + proxy_pass http://172.17.0.28:8080; add_header 'Cache-Control' 'no-cache'; add_header 'Content-Type' 'text/event-stream'; add_header 'Connection' 'keep-alive'; @@ -90,16 +90,4 @@ server { include /home/dokku/gateway/nginx.conf.d/*.conf; } -{{ end }} - -# Upstream setup -{{ range $upstream_port := $.PROXY_UPSTREAM_PORTS | split " " }} -upstream {{ $.APP }}-{{ $upstream_port }} { -{{ range $listeners := $.DOKKU_APP_WEB_LISTENERS | split " " }} -{{ $listener_list := $listeners | split ":" }} -{{ $listener_ip := index $listener_list 0 }} -{{ $listener_port := index $listener_list 1 }} - server {{ $listener_ip }}:{{ $upstream_port }}; -{{ end }} -} {{ end }} \ No newline at end of file