diff options
author | MS <ms@taler.net> | 2022-08-24 16:52:31 +0200 |
---|---|---|
committer | MS <ms@taler.net> | 2022-08-24 16:52:31 +0200 |
commit | f4b8c1aa4920d1c5b667c309a802f0a15164e528 (patch) | |
tree | 7ce44f7fdac2a92ae2d7e00b5a79086214aa39c7 | |
parent | 0d58f39a4ecfc0c75806a69e5bf1a1317da5ea50 (diff) | |
download | deployment-f4b8c1aa4920d1c5b667c309a802f0a15164e528.tar.gz deployment-f4b8c1aa4920d1c5b667c309a802f0a15164e528.tar.bz2 deployment-f4b8c1aa4920d1c5b667c309a802f0a15164e528.zip |
proxy_pass to libEufin over HTTP
-rwxr-xr-x | bin/taler-gv | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/taler-gv b/bin/taler-gv index d00e4bd..1ac1ff5 100755 --- a/bin/taler-gv +++ b/bin/taler-gv @@ -1167,17 +1167,23 @@ def prepare(postgres_db_name): with open(TALER_UNIT_FILES_DIR / "taler-local-postgres.env", "w") as postgres_env: postgres_env.write(f"PGPORT={os.environ.get('PGPORT')}") + # FIXME/REMINDER: libEufin needs to enable writes for the + # domain socket's group, otherwise Nginx won't be able to + # proxy_pass requests. + # euFin unit files. with open(TALER_UNIT_FILES_DIR / "taler-local-sandbox.service", "w") as sandbox_unit: sandbox_unit.write(unit_file_content( description = "euFin Sandbox", - cmd = f"{TALER_PREFIX}/bin/libeufin-sandbox serve --with-unix-socket {UNIX_SOCKETS_DIR / 'bank.http'}", + cmd = f"{TALER_PREFIX}/bin/libeufin-sandbox serve", # takes port 5000 + # cmd = f"{TALER_PREFIX}/bin/libeufin-sandbox serve --with-unix-socket {UNIX_SOCKETS_DIR / 'bank.http'}", env = TALER_UNIT_FILES_DIR / "taler-local-sandbox.env" )) with open(TALER_UNIT_FILES_DIR / "taler-local-nexus.service", "w") as nexus_unit: nexus_unit.write(unit_file_content( description = "euFin Nexus", - cmd = f"{TALER_PREFIX}/bin/libeufin-nexus serve --with-unix-socket {UNIX_SOCKETS_DIR / 'nexus.http'}", + cmd = f"{TALER_PREFIX}/bin/libeufin-nexus serve", # takes port 5001 + # cmd = f"{TALER_PREFIX}/bin/libeufin-nexus serve --with-unix-socket {UNIX_SOCKETS_DIR / 'nexus.http'}", env = TALER_UNIT_FILES_DIR / "taler-local-nexus.env" )) # euFin env files. |