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, 08 Dec 2021 20:58:24 +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 50eeddf  taler-local
50eeddf is described below

commit 50eeddff58efa8e696f1b59e576703de064d88fd
Author: ms <ms@taler.net>
AuthorDate: Wed Dec 8 20:56:31 2021 +0100

    taler-local
    
    adjust --x-forwarded-host to work without port number
---
 bin/WIP/taler-local | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/bin/WIP/taler-local b/bin/WIP/taler-local
index 8e56704..4a607d2 100755
--- a/bin/WIP/taler-local
+++ b/bin/WIP/taler-local
@@ -1105,8 +1105,12 @@ def prepare(x_forwarded_host, x_forwarded_proto, 
postgres_db_name):
     # to the port Nginx binds to.  Allows clients
     # 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
+    try:
+        x_forwarded_port = x_forwarded_host.split(":")[1]
+    except IndexError:
+        x_forwarded_port = None
+
+    need_redirect = (x_forwarded_port) and (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",

-- 
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]