diff --git a/frontend/proxy.conf.local-esplora.js b/frontend/proxy.conf.local-esplora.js index 905910294..54ffa54f8 100644 --- a/frontend/proxy.conf.local-esplora.js +++ b/frontend/proxy.conf.local-esplora.js @@ -33,6 +33,17 @@ if (configContent && configContent.BASE_MODULE === 'liquid') { "^/liquid": "" }, }, + { + context: ['/liquid/api/v2/**'], + target: `http://127.0.0.1:8999`, + secure: false, + ws: true, + changeOrigin: true, + proxyTimeout: 30000, + pathRewrite: { + "^/liquid": "" + }, + }, { context: ['/liquid/api/**'], target: `http://127.0.0.1:3000`, @@ -54,6 +65,17 @@ if (configContent && configContent.BASE_MODULE === 'liquid') { "^/liquidtestnet": "" }, }, + { + context: ['/liquidtestnet/api/v2/**'], + target: `http://127.0.0.1:8999`, + secure: false, + ws: true, + changeOrigin: true, + proxyTimeout: 30000, + pathRewrite: { + "^/liquidtestnet": "" + }, + }, { context: ['/liquidtestnet/api/**'], target: `http://127.0.0.1:3000`, @@ -106,6 +128,14 @@ PROXY_CONFIG.push(...[ changeOrigin: true, proxyTimeout: 30000, }, + { + context: ['/api/v2/**'], + target: `http://127.0.0.1:8999`, + secure: false, + ws: true, + changeOrigin: true, + proxyTimeout: 30000, + }, { context: ['/api/**'], target: `http://127.0.0.1:3000`, diff --git a/frontend/proxy.conf.local.js b/frontend/proxy.conf.local.js index e7bfeee70..f3c0a93df 100644 --- a/frontend/proxy.conf.local.js +++ b/frontend/proxy.conf.local.js @@ -33,6 +33,17 @@ if (configContent && configContent.BASE_MODULE === 'liquid') { "^/liquid": "" }, }, + { + context: ['/liquid/api/v2/**'], + target: `http://localhost:8999`, + secure: false, + ws: true, + changeOrigin: true, + proxyTimeout: 30000, + pathRewrite: { + "^/liquid": "" + }, + }, { context: ['/liquid/api/**'], target: `http://localhost:8999`, @@ -54,6 +65,17 @@ if (configContent && configContent.BASE_MODULE === 'liquid') { "^/liquidtestnet": "" }, }, + { + context: ['/liquidtestnet/api/v2/**'], + target: `http://localhost:8999`, + secure: false, + ws: true, + changeOrigin: true, + proxyTimeout: 30000, + pathRewrite: { + "^/liquidtestnet": "" + }, + }, { context: ['/liquidtestnet/api/**'], target: `http://localhost:8999`, @@ -94,6 +116,14 @@ PROXY_CONFIG.push(...[ changeOrigin: true, proxyTimeout: 30000, }, + { + context: ['/api/v2/**'], + target: `http://localhost:8999`, + secure: false, + ws: true, + changeOrigin: true, + proxyTimeout: 30000, + }, { context: ['/api/**'], target: `http://localhost:8999`, diff --git a/frontend/proxy.conf.mixed.js b/frontend/proxy.conf.mixed.js index db8af5d95..07866f7ee 100644 --- a/frontend/proxy.conf.mixed.js +++ b/frontend/proxy.conf.mixed.js @@ -33,6 +33,17 @@ if (configContent && configContent.BASE_MODULE === 'liquid') { "^/liquid": "" }, }, + { + context: ['/liquid/api/v2/**'], + target: `http://localhost:8999`, + secure: false, + ws: true, + changeOrigin: true, + proxyTimeout: 30000, + pathRewrite: { + "^/liquid": "" + }, + }, { context: ['/liquid/api/**'], target: `https://liquid.network`, @@ -51,6 +62,17 @@ if (configContent && configContent.BASE_MODULE === 'liquid') { "^/liquidtestnet": "" }, }, + { + context: ['/liquidtestnet/api/v2/**'], + target: `http://localhost:8999`, + secure: false, + ws: true, + changeOrigin: true, + proxyTimeout: 30000, + pathRewrite: { + "^/liquidtestnet": "" + }, + }, { context: ['/liquidtestnet/api/**'], target: `https://liquid.network`, @@ -78,6 +100,14 @@ PROXY_CONFIG.push(...[ changeOrigin: true, proxyTimeout: 30000, }, + { + context: ['/api/v2/**'], + target: `http://localhost:8999`, + secure: false, + ws: true, + changeOrigin: true, + proxyTimeout: 30000, + }, { context: ['/api/**'], target: `https://mempool.space`, diff --git a/nginx-mempool.conf b/nginx-mempool.conf index 2532a7082..465b15139 100644 --- a/nginx-mempool.conf +++ b/nginx-mempool.conf @@ -64,6 +64,9 @@ location /api/ { proxy_pass http://127.0.0.1:8999/api/v1/; } + location /api/v2 { + proxy_pass http://127.0.0.1:8999/api/v2; + } # mainnet API location /ws {