Allow mainnet to serve testnet and vice versa

This commit is contained in:
Wietse Wind
2023-10-29 02:02:38 +02:00
parent 4f3874a470
commit 215756c4ca

View File

@@ -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;