blob: 9e2ce5b0e8128743202058f7005c2e537df34513 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
server {
listen 80;
listen [::]:80;
server_name bank.${DOMAIN_NAME};
access_log /var/log/nginx/libeufin-sandbox.log;
error_log /var/log/nginx/libeufin-sandbox.err;
# 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 /;
}
}
|