mirror of
https://github.com/mempool/mempool.git
synced 2025-02-24 14:50:52 +01:00
Local dev accelerations proxy
This commit is contained in:
parent
8d66374374
commit
b41382dfee
1 changed files with 11 additions and 0 deletions
|
@ -78,6 +78,17 @@ PROXY_CONFIG.push(...[
|
|||
"^/testnet": ""
|
||||
},
|
||||
},
|
||||
/* Optional proxy to route dev to official acceleration services
|
||||
{
|
||||
context: ['/api/v1/services/accelerator/**'],
|
||||
target: `https://mempool.space/api/v1/services/accelerator/`,
|
||||
secure: false,
|
||||
changeOrigin: true,
|
||||
proxyTimeout: 30000,
|
||||
pathRewrite: {
|
||||
"^/api/v1/services/accelerator": ""
|
||||
},
|
||||
*/
|
||||
{
|
||||
context: ['/api/v1/services/**'],
|
||||
target: `http://localhost:9000`,
|
||||
|
|
Loading…
Add table
Reference in a new issue