libeufin

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

commit 2f2277c0250740b84514a0594973da9603d22fcc
parent bb3d2eea0671952b509f16b99f4aba6ef33142fb
Author: MS <ms@taler.net>
Date:   Mon, 27 Feb 2023 09:41:11 +0100

Debian package.

Installing one Nginx config file as an
example of how to install the SPA.  The
Actual SPA still needs to be installed.

Diffstat:
Mdebian/control | 1+
Adebian/etc/nginx/sites-available/libeufin-sandbox.conf | 37+++++++++++++++++++++++++++++++++++++
Mdebian/libeufin.install | 2++
3 files changed, 40 insertions(+), 0 deletions(-)

diff --git a/debian/control b/debian/control @@ -17,6 +17,7 @@ Depends: openjdk-11-jdk-headless | openjdk-11-jdk | openjdk-12-jdk-headless | op python3 (>= 3.7), python3-click, python3-requests, + apache2 | nginx | httpd, ${misc:Depends} Recommends: Description: Software package to access FinTS/EBICS based diff --git a/debian/etc/nginx/sites-available/libeufin-sandbox.conf b/debian/etc/nginx/sites-available/libeufin-sandbox.conf @@ -0,0 +1,37 @@ +server { + include /etc/nginx/mime.types; + + # NOTE: + # - urgently consider configuring TLS instead + # - maybe keep a forwarder from HTTP to HTTPS + listen 80; + + # NOTE: + # - Comment out this line if you have no IPv6 + listen [::]:80; + + # NOTE: + # - replace with your actual server name. + server_name localhost; + + # Doesn't take requests away from the backend, + # because that expects always a "/demobanks/default" + # prefix. + rewrite ^/$ /webui/index.html; + + # FRONTEND + location /webui { + # This location has both the SPA HTML and the + # JavaScript configuration demobank-ui-settings.js + alias /usr/share/taler/demobank-ui; + } + + # BACKEND + 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 /; + proxy_pass http://localhost:5000/; + } +} diff --git a/debian/libeufin.install b/debian/libeufin.install @@ -1 +1,3 @@ debian/etc/* etc/ +# Only used to install the SPA + JS config: +debian/usr/share/libeufin/* usr/share/libeufin/