commit f4b8c1aa4920d1c5b667c309a802f0a15164e528
parent 0d58f39a4ecfc0c75806a69e5bf1a1317da5ea50
Author: MS <ms@taler.net>
Date: Wed, 24 Aug 2022 16:52:31 +0200
proxy_pass to libEufin over HTTP
Diffstat:
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git 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.