From c26461fada82d8c5a1a6d6770e6cdaa796df9640 Mon Sep 17 00:00:00 2001 From: Felipe Knorr Kuhn <100320+knorrium@users.noreply.github.com> Date: Tue, 15 Jun 2021 15:32:36 -0700 Subject: [PATCH] Route json assets to prod (#585) * update proxy settings to route json assets to prod --- frontend/proxy.conf.json | 17 ++++++++++++++++- frontend/proxy.prod.conf.json | 17 ++++++++++++++++- frontend/proxy.stg.conf.json | 15 +++++++++++++++ 3 files changed, 47 insertions(+), 2 deletions(-) diff --git a/frontend/proxy.conf.json b/frontend/proxy.conf.json index 3f989d565..61cd6e825 100644 --- a/frontend/proxy.conf.json +++ b/frontend/proxy.conf.json @@ -88,5 +88,20 @@ "pathRewrite": { "^/bisq/api": "/api/v1/ws" } + }, + "/resources/assets.minimal.json": { + "target": "https://mempool.space", + "secure": false, + "changeOrigin": true + }, + "/resources/assets.json": { + "target": "https://mempool.space", + "secure": false, + "changeOrigin": true + }, + "/resources/pools.json": { + "target": "https://mempool.space", + "secure": false, + "changeOrigin": true } -} \ No newline at end of file +} diff --git a/frontend/proxy.prod.conf.json b/frontend/proxy.prod.conf.json index 461eb7c85..182f00075 100644 --- a/frontend/proxy.prod.conf.json +++ b/frontend/proxy.prod.conf.json @@ -83,5 +83,20 @@ "^/liquid/api/": "/liquid/api/" }, "timeout": 3600000 + }, + "/resources/assets.minimal.json": { + "target": "https://mempool.space", + "secure": false, + "changeOrigin": true + }, + "/resources/assets.json": { + "target": "https://mempool.space", + "secure": false, + "changeOrigin": true + }, + "/resources/pools.json": { + "target": "https://mempool.space", + "secure": false, + "changeOrigin": true } -} +} \ No newline at end of file diff --git a/frontend/proxy.stg.conf.json b/frontend/proxy.stg.conf.json index cc1a882db..380222d43 100644 --- a/frontend/proxy.stg.conf.json +++ b/frontend/proxy.stg.conf.json @@ -81,5 +81,20 @@ "^/liquid/api/": "/api/v1/liquid/" }, "timeout": 3600000 + }, + "/resources/assets.minimal.json": { + "target": "https://mempool.space", + "secure": false, + "changeOrigin": true + }, + "/resources/assets.json": { + "target": "https://mempool.space", + "secure": false, + "changeOrigin": true + }, + "/resources/pools.json": { + "target": "https://mempool.space", + "secure": false, + "changeOrigin": true } }