From 81bb31090efd8eb8465c315369d8befe2e341337 Mon Sep 17 00:00:00 2001 From: wiz Date: Wed, 5 Jan 2022 18:12:05 +0900 Subject: [PATCH] Use upstream hostnames in production nginx configuration --- production/nginx/location-liquid-api.conf | 4 ++-- production/nginx/location-liquidtestnet-api.conf | 4 ++-- production/nginx/server-bisq.conf | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/production/nginx/location-liquid-api.conf b/production/nginx/location-liquid-api.conf index be87f060e..7c2f927a6 100644 --- a/production/nginx/location-liquid-api.conf +++ b/production/nginx/location-liquid-api.conf @@ -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/; diff --git a/production/nginx/location-liquidtestnet-api.conf b/production/nginx/location-liquidtestnet-api.conf index 1ef22c95b..8b03c6fc4 100644 --- a/production/nginx/location-liquidtestnet-api.conf +++ b/production/nginx/location-liquidtestnet-api.conf @@ -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/; diff --git a/production/nginx/server-bisq.conf b/production/nginx/server-bisq.conf index dc65b3600..2a6886f4b 100644 --- a/production/nginx/server-bisq.conf +++ b/production/nginx/server-bisq.conf @@ -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;