blob: 1c6a6d3de5c541ff29ae45269fd6404628ff96b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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;
# Bigger than default timeout to support long polling
proxy_read_timeout 6500s;
keepalive_requests 1000000;
keepalive_timeout 6500s;
# 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 /;
}
}
|