libeufin

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

commit 71ea647ae84b00fde2ffbdb95f18c96676e926ef
parent 4134631e2a9c7224b798ea4d5b704102c0811924
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat,  4 Mar 2023 17:43:35 +0100

-whitespace

Diffstat:
Adebian/etc/nginx/sites-available/libeufin-sandbox | 39+++++++++++++++++++++++++++++++++++++++
Ddebian/etc/nginx/sites-available/libeufin-sandbox.conf | 39---------------------------------------
2 files changed, 39 insertions(+), 39 deletions(-)

diff --git a/debian/etc/nginx/sites-available/libeufin-sandbox b/debian/etc/nginx/sites-available/libeufin-sandbox @@ -0,0 +1,39 @@ +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; + + # BACKEND + location /demobanks/default { + # 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/; + } + # 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/; + } + +} diff --git a/debian/etc/nginx/sites-available/libeufin-sandbox.conf b/debian/etc/nginx/sites-available/libeufin-sandbox.conf @@ -1,39 +0,0 @@ -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; - - # BACKEND - location /demobanks/default { - # 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/; - } - # 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/; - } - -}