Use upstream hostnames in production nginx configuration

This commit is contained in:
wiz 2022-01-05 18:12:05 +09:00
parent c778e84247
commit 81bb31090e
No known key found for this signature in database
GPG Key ID: A394E332255A6173
3 changed files with 6 additions and 6 deletions

View File

@ -1,11 +1,11 @@
location /liquid/api/v1/ws {
proxy_pass http://127.0.0.1:8998/;
proxy_pass http://mempool-liquid-mainnet/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
location /liquid/api/v1 {
proxy_pass http://127.0.0.1:8998/api/v1;
proxy_pass http://mempool-liquid-mainnet/api/v1;
}
location /liquid/api/ {
proxy_pass http://electrs-liquid-mainnet/;

View File

@ -1,11 +1,11 @@
location /liquidtestnet/api/v1/ws {
proxy_pass http://127.0.0.1:8994/;
proxy_pass http://mempool-liquid-testnet/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
location /liquidtestnet/api/v1 {
proxy_pass http://127.0.0.1:8994/api/v1;
proxy_pass http://mempool-liquid-testnet/api/v1;
}
location /liquidtestnet/api/ {
proxy_pass http://electrs-liquid-testnet/;

View File

@ -63,14 +63,14 @@ location /bisq/api {
# special handling for websocket
location /api/v1/ws {
proxy_pass http://127.0.0.1:8996/;
proxy_pass http://mempool-bitcoin-bisq/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
location @mempool-bisq {
proxy_pass http://127.0.0.1:8996;
proxy_pass http://mempool-bitcoin-bisq;
proxy_http_version 1.1;
proxy_set_header Host $http_host;