From 215756c4ca41c285e3460a9f0cd2b037ee37f216 Mon Sep 17 00:00:00 2001 From: Wietse Wind Date: Sun, 29 Oct 2023 02:02:38 +0200 Subject: [PATCH] Allow mainnet to serve testnet and vice versa --- conf/nginx.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 1b0b668..590241b 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -112,6 +112,10 @@ http { } } + location /mainnet/ { + proxy_pass http://127.0.0.1:$PUBLIC_PORT/; + } + location / { proxy_pass http://backend-testnet; proxy_http_version 1.1; @@ -193,6 +197,10 @@ http { } } + location /testnet/ { + proxy_pass http://127.0.0.1:$PUBLIC_PORT_TESTNET/; + } + location / { proxy_pass http://backend-mainnet; proxy_http_version 1.1;