From d3646aa45ea431acd03179571ac664802efe64c1 Mon Sep 17 00:00:00 2001 From: wiz Date: Sun, 31 Jan 2021 01:15:54 +0900 Subject: [PATCH] Fix production nginx.conf and backend config to always use unique ports --- production/mempool-config.liquid.json | 2 +- production/mempool-config.mainnet.json | 2 +- production/mempool-config.testnet.json | 2 +- production/nginx.conf | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/production/mempool-config.liquid.json b/production/mempool-config.liquid.json index 14d9d1691..cdd728f26 100644 --- a/production/mempool-config.liquid.json +++ b/production/mempool-config.liquid.json @@ -14,7 +14,7 @@ "PASSWORD": "bar" }, "ESPLORA": { - "REST_API_URL": "http://127.0.0.1:3001" + "REST_API_URL": "http://127.0.0.1:2001" }, "DATABASE": { "ENABLED": true, diff --git a/production/mempool-config.mainnet.json b/production/mempool-config.mainnet.json index cc7046d80..039462eac 100644 --- a/production/mempool-config.mainnet.json +++ b/production/mempool-config.mainnet.json @@ -13,7 +13,7 @@ "PASSWORD": "bar" }, "ESPLORA": { - "REST_API_URL": "http://127.0.0.1:3000" + "REST_API_URL": "http://127.0.0.1:2000" }, "DATABASE": { "ENABLED": true, diff --git a/production/mempool-config.testnet.json b/production/mempool-config.testnet.json index 86946b35e..49bec7e76 100644 --- a/production/mempool-config.testnet.json +++ b/production/mempool-config.testnet.json @@ -14,7 +14,7 @@ "PASSWORD": "bar" }, "ESPLORA": { - "REST_API_URL": "http://127.0.0.1:3002" + "REST_API_URL": "http://127.0.0.1:2002" }, "DATABASE": { "ENABLED": true, diff --git a/production/nginx.conf b/production/nginx.conf index c7bdce818..2c1230eee 100644 --- a/production/nginx.conf +++ b/production/nginx.conf @@ -136,7 +136,7 @@ http { server [2401:b140:1::100:210]:3000 backup; } server { - listen 127.0.0.1:3000; + listen 127.0.0.1:2000; access_log /dev/null; location / { proxy_pass http://electrs-mainnet; @@ -148,7 +148,7 @@ http { server [2401:b140:1::100:210]:3001 backup; } server { - listen 127.0.0.1:3001; + listen 127.0.0.1:2001; access_log /dev/null; location / { proxy_pass http://electrs-liquid; @@ -160,7 +160,7 @@ http { server [2401:b140:1::100:210]:3002 backup; } server { - listen 127.0.0.1:3002; + listen 127.0.0.1:2002; access_log /dev/null; location / { proxy_pass http://electrs-testnet;