diff options
Diffstat (limited to 'netzbon/nginx-conf/bank.taler-nginx.conf')
-rw-r--r-- | netzbon/nginx-conf/bank.taler-nginx.conf | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/netzbon/nginx-conf/bank.taler-nginx.conf b/netzbon/nginx-conf/bank.taler-nginx.conf index dcdd265..9e2ce5b 100644 --- a/netzbon/nginx-conf/bank.taler-nginx.conf +++ b/netzbon/nginx-conf/bank.taler-nginx.conf @@ -7,21 +7,12 @@ server { access_log /var/log/nginx/libeufin-sandbox.log; error_log /var/log/nginx/libeufin-sandbox.err; - location /demobanks/default { - proxy_pass http://localhost:5016; + # TODO should we proxy SPA with nginx for perf and fallback to bank server on 404 ? + location / { + proxy_pass http://localhost:${BANK_PORT}; #Fixes withdrawal http request proxy_set_header X-Forwarded-Proto "${PROTO}"; proxy_set_header X-Forwarded-Host "bank.${DOMAIN_NAME}"; proxy_set_header X-Forwarded-Prefix /; } - - location / { - index index.html; - alias /usr/share/libeufin/demobank-ui/; - } - - location = /demobank-ui-settings.js { - alias /etc/libeufin/demobank-ui-settings.js; - } - } |