mirror of
https://github.com/mempool/mempool.git
synced 2025-02-23 14:40:38 +01:00
Fix Liquid proxy settings
This commit is contained in:
parent
3a67bc6425
commit
35e69f2e3d
1 changed files with 4 additions and 5 deletions
|
@ -61,10 +61,7 @@ PROXY_CONFIG = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
context: ['/api/liquidtestnet**', '/liquidtestnet/api/**'],
|
context: ['/api/liquidtestnet**', '/liquidtestnet/api/**'],
|
||||||
target: "https://liquid.network/testnet",
|
target: "https://liquid.network",
|
||||||
pathRewrite: {
|
|
||||||
"^/api/liquidtestnet/": "/liquidtestnet/api"
|
|
||||||
},
|
|
||||||
ws: true,
|
ws: true,
|
||||||
secure: false,
|
secure: false,
|
||||||
changeOrigin: true
|
changeOrigin: true
|
||||||
|
@ -73,7 +70,9 @@ PROXY_CONFIG = [
|
||||||
|
|
||||||
if (configContent && configContent.BASE_MODULE == "liquid") {
|
if (configContent && configContent.BASE_MODULE == "liquid") {
|
||||||
PROXY_CONFIG.push({
|
PROXY_CONFIG.push({
|
||||||
context: ['/resources/pools.json', '/resources/assets.json', '/resources/assets.minimal.json'],
|
context: ['/resources/pools.json',
|
||||||
|
'/resources/assets.json', '/resources/assets.minimal.json',
|
||||||
|
'/resources/assets-testnet.json', '/resources/assets-testnet.minimal.json'],
|
||||||
target: "https://liquid.network",
|
target: "https://liquid.network",
|
||||||
secure: false,
|
secure: false,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
|
|
Loading…
Add table
Reference in a new issue