From b26f8f7934c0566411d48c5f4e018cf07c742d26 Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me> Date: Sun, 1 Nov 2020 23:50:09 -0500 Subject: [PATCH] Made it so the fallthrough doesnt use proxy-pass, need to find a better way. --- swarm-proxy/https-routing.conf.tmpl | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/swarm-proxy/https-routing.conf.tmpl b/swarm-proxy/https-routing.conf.tmpl index 387c5de..0285202 100644 --- a/swarm-proxy/https-routing.conf.tmpl +++ b/swarm-proxy/https-routing.conf.tmpl @@ -8,7 +8,7 @@ stream { } upstream fallthrough_https_upstream { - server host.docker.internal:4443; + server 127.0.0.1:445; } upstream local_https { @@ -22,4 +22,16 @@ stream { proxy_pass $name; ssl_preread on; } + + upstream fallthrough_final { + server host.docker.internal:4443; + } + + + server { + listen 445 proxy_protocol; + proxy_pass fallthrough_final; + ssl_preread on; + proxy_protocol off; + } } -- GitLab