libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 0c0a6de5c3173f15aaa1522f0e1c8bb0cd7ef155
parent 12b159df62acf8d872479d8660695a3f81eb288b
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Sat, 25 Nov 2023 06:40:25 +0900

-update nginx config to new build-in SPA setup

Diffstat:
Mcontrib/libeufin-bank.conf | 4++--
Mdebian/etc/libeufin-bank/libeufin-bank.conf | 6++++++
Mdebian/etc/nginx/sites-available/libeufin-bank | 23++++++-----------------
3 files changed, 14 insertions(+), 19 deletions(-)

diff --git a/contrib/libeufin-bank.conf b/contrib/libeufin-bank.conf @@ -20,14 +20,14 @@ REGISTRATION_BONUS_ENABLED = yes REGISTRATION_BONUS = KUDOS:100 # Exchange that is suggested to wallets when withdrawing. -SUGGESTED_WITHDRAWAL_EXCHANGE = https://exchange.test.taler.net/ +SUGGESTED_WITHDRAWAL_EXCHANGE = https://exchange.demo.taler.net/ # URL that wallets are redirected to when they need to confirm # a withdrawal. # The string {woid} is replaced with the withdrawal operation ID. # FIXME: The name is not great. Maybe call it WITHDRAWAL_CONFIRMATION_REDIRECT # or something similar? -SPA_CAPTCHA_URL = https://bank.test.taler.net/webui/#/operation/{woid} +SPA_CAPTCHA_URL = https://bank.demo.taler.net/webui/#/operation/{woid} # Where "libeufin-bank serve" serves its API SERVE = tcp diff --git a/debian/etc/libeufin-bank/libeufin-bank.conf b/debian/etc/libeufin-bank/libeufin-bank.conf @@ -1 +1,6 @@ # This is the main configuration entrypoint for the libeufin-bank. + +# FIXME: provide sane template here with +# all applicable options and make sure it is +# consistent with the reverse proxy configuration +# deployed by the Debian package +\ No newline at end of file diff --git a/debian/etc/nginx/sites-available/libeufin-bank b/debian/etc/nginx/sites-available/libeufin-bank @@ -17,30 +17,19 @@ server { access_log /var/log/nginx/libeufin-bank.log; error_log /var/log/nginx/libeufin-bank.err; - # Doesn't take requests away from the backend, - # because that expects always a "/demobanks/default" - # prefix. - # rewrite ^/$ /webui/index.html; - - # BACKEND - location /demobanks/default { + location / { # NOTE: urgently change to 'https' once TLS has been configured. proxy_set_header X-Forwarded-Proto "$scheme"; proxy_set_header X-Forwarded-Host "localhost"; proxy_set_header X-Forwarded-Prefix /; + # FIXME: should use UNIX domain socket once + # supported by libeufin-bank! proxy_pass http://localhost:5016; } - # rewrite ^/$ /index.html; - # FRONTEND - location / { - # This location has both the SPA HTML and the - # JavaScript configuration demobank-ui-settings.js - index index.html; - alias /usr/share/libeufin/demobank-ui/; - } - location = /demobank-ui-settings.js { - alias /etc/libeufin/demobank-ui-settings.js; + # Optional. + location = /settings.js { + alias /etc/libeufin/settings.js; } }