gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: -update nginx config to new build-in S


From: gnunet
Subject: [libeufin] branch master updated: -update nginx config to new build-in SPA setup
Date: Fri, 24 Nov 2023 22:40:35 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 0c0a6de5 -update nginx config to new build-in SPA setup
0c0a6de5 is described below

commit 0c0a6de5c3173f15aaa1522f0e1c8bb0cd7ef155
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Sat Nov 25 06:40:25 2023 +0900

    -update nginx config to new build-in SPA setup
---
 contrib/libeufin-bank.conf                     |  4 ++--
 contrib/wallet-core                            |  2 +-
 debian/etc/libeufin-bank/libeufin-bank.conf    |  5 +++++
 debian/etc/nginx/sites-available/libeufin-bank | 23 ++++++-----------------
 4 files changed, 14 insertions(+), 20 deletions(-)

diff --git a/contrib/libeufin-bank.conf b/contrib/libeufin-bank.conf
index f7d84a3b..c7f9e71a 100644
--- 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/contrib/wallet-core b/contrib/wallet-core
index 6eca153b..2204603c 160000
--- a/contrib/wallet-core
+++ b/contrib/wallet-core
@@ -1 +1 @@
-Subproject commit 6eca153b329953b703d0517dbd65001715431c6c
+Subproject commit 2204603cf3311e71dd13bde67580a10fb608a5f4
diff --git a/debian/etc/libeufin-bank/libeufin-bank.conf 
b/debian/etc/libeufin-bank/libeufin-bank.conf
index 32faadea..509b6017 100644
--- 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
index 9758165f..ed9d1c41 100644
--- 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;
   }
 
 }

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