From bf1101ff663b097c92dbfa98768dcfddfdf2c0f7 Mon Sep 17 00:00:00 2001 From: softsimon Date: Sun, 2 Aug 2020 18:31:47 +0700 Subject: [PATCH] Add testnet and bisq to local development proxy config. --- frontend/proxy.conf.json | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/frontend/proxy.conf.json b/frontend/proxy.conf.json index 2e161a18d..bb8672574 100644 --- a/frontend/proxy.conf.json +++ b/frontend/proxy.conf.json @@ -8,6 +8,35 @@ "secure": false, "ws": true }, + "/api": { + "target": "http://localhost:50001/", + "secure": false, + "pathRewrite": { + "^/api": "" + } + }, + "/testnet/api/v1": { + "target": "http://localhost:8999/", + "secure": false, + "pathRewrite": { + "^/testnet/api/v1": "/api/v1" + } + }, + "/testnet/api/v1/ws": { + "target": "http://localhost:8999/", + "secure": false, + "ws": true, + "pathRewrite": { + "^/testnet/api": "/api/v1/ws" + } + }, + "/testnet/api": { + "target": "http://localhost:50001/", + "secure": false, + "pathRewrite": { + "^/testnet/api": "" + } + }, "/bisq/api": { "target": "http://localhost:8999/", "secure": false, @@ -15,11 +44,12 @@ "^/bisq/api": "/api/v1/bisq" } }, - "/api": { - "target": "http://localhost:50001/", + "/bisq/api/v1/ws": { + "target": "http://localhost:8999/", "secure": false, + "ws": true, "pathRewrite": { - "^/api": "" + "^/testnet/api": "/api/v1/ws" } } } \ No newline at end of file