gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-deployment] branch master updated: taler-local


From: gnunet
Subject: [taler-deployment] branch master updated: taler-local
Date: Wed, 01 Dec 2021 17:04:36 +0100

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository deployment.

The following commit(s) were added to refs/heads/master by this push:
     new 7491fea  taler-local
7491fea is described below

commit 7491fea292f6108e1bdeb62d5d6c7e1cd0237da8
Author: ms <ms@taler.net>
AuthorDate: Wed Dec 1 17:03:05 2021 +0100

    taler-local
    
    forward port only when X-Forward-Host
    differs from the one Nginx binds to.
---
 bin/WIP/taler-local | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/WIP/taler-local b/bin/WIP/taler-local
index 123cc8d..9dbd2db 100755
--- a/bin/WIP/taler-local
+++ b/bin/WIP/taler-local
@@ -1088,10 +1088,11 @@ def prepare(x_forwarded_host, x_forwarded_proto):
     # connecting from within a container to still
     # reach services at X-Forwarded-Host.
     x_forwarded_port = x_forwarded_host.split(":")[1]
+    need_redirect = x_forwarded_port != REV_PROXY_PORT
     with open(TALER_UNIT_FILES_DIR / "taler-local-port-redirect.service", "w") 
as port_redirect_unit:
         port_redirect_unit.write(unit_file_content(
             description = "Port redirect allowing configuration at 
X-Forwarded-Host",
-            cmd = f"socat TCP4-LISTEN:{x_forwarded_port},fork 
TCP4:{REV_PROXY_NETLOC}",
+            cmd = f"socat TCP4-LISTEN:{x_forwarded_port},fork 
TCP4:{REV_PROXY_NETLOC}" if need_redirect else "true",
         ))
     with open(TALER_UNIT_FILES_DIR / "taler-local-exchange-httpd.service", 
"w") as exchange_unit:
         exchange_unit.write(unit_file_content(

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]