taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit d4b82ccab8a46dd3256b5caba82a6cb90e6b7934
parent 6952fa569d0a41980b3dc3edf7208b0d458e0736
Author: ms <ms@taler.net>
Date:   Fri, 29 Apr 2022 08:44:56 +0200

nginx dual stack

Diffstat:
Mbin/taler-local | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/taler-local b/bin/taler-local @@ -1358,16 +1358,17 @@ def prepare(x_forwarded_host, x_forwarded_proto, postgres_db_name): f"access_log {LOG_DIR / 'nginx.log'};\n" "server {\n" f"listen {REV_PROXY_PORT};\n" + f"listen [::]:{REV_PROXY_PORT};\n" "location / {\n" "return 200 'Hello, I am Nginx - proxying taler-local\n';\n" "}\n" "location ~* ^/(?<component>[a-z\-]+)(/(?<taler_uri>.*))? {\n" - f"proxy_pass http://unix:{UNIX_SOCKETS_DIR}/$component.sock:/$taler_uri?$args;\n" "proxy_redirect off;\n" "proxy_set_header X-Forwarded-Prefix /$component;\n" f"proxy_set_header X-Forwarded-Host {x_forwarded_host};\n" f"proxy_set_header X-Forwarded-Proto {x_forwarded_proto};\n" f"client_body_temp_path /tmp/taler-local-nginx;\n" + f"proxy_pass http://unix:{UNIX_SOCKETS_DIR}/$component.sock:/$taler_uri?$args;\n" "}\n" "}\n" "}\n"