Merge pull request #1279 from mempool/simon/liquid-testnet-proxy
Add proxy support for Liquid Testnet
This commit is contained in:
		
						commit
						5f0a0c0ac7
					
				| @ -42,7 +42,28 @@ if (configContent && configContent.BASE_MODULE === 'liquid') { | |||||||
|       pathRewrite: { |       pathRewrite: { | ||||||
|           "^/liquid/api/": "/api/v1/" |           "^/liquid/api/": "/api/v1/" | ||||||
|       }, |       }, | ||||||
|     } |     }, | ||||||
|  |     { | ||||||
|  |       context: ['/liquidtestnet/api/v1/**'], | ||||||
|  |       target: `http://localhost:8999`, | ||||||
|  |       secure: false, | ||||||
|  |       ws: true, | ||||||
|  |       changeOrigin: true, | ||||||
|  |       proxyTimeout: 30000, | ||||||
|  |       pathRewrite: { | ||||||
|  |           "^/liquidtestnet": "" | ||||||
|  |       }, | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |       context: ['/liquidtestnet/api/**'], | ||||||
|  |       target: `http://localhost:8999`, | ||||||
|  |       secure: false, | ||||||
|  |       changeOrigin: true, | ||||||
|  |       proxyTimeout: 30000, | ||||||
|  |       pathRewrite: { | ||||||
|  |           "^/liquidtestnet/api/": "/api/v1/" | ||||||
|  |       }, | ||||||
|  |     }, | ||||||
|   ]); |   ]); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -40,6 +40,24 @@ if (configContent && configContent.BASE_MODULE === 'liquid') { | |||||||
|       changeOrigin: true, |       changeOrigin: true, | ||||||
|       proxyTimeout: 30000, |       proxyTimeout: 30000, | ||||||
|     }, |     }, | ||||||
|  |     { | ||||||
|  |       context: ['/liquidtestnet/api/v1/**'], | ||||||
|  |       target: `http://localhost:8999`, | ||||||
|  |       secure: false, | ||||||
|  |       ws: true, | ||||||
|  |       changeOrigin: true, | ||||||
|  |       proxyTimeout: 30000, | ||||||
|  |       pathRewrite: { | ||||||
|  |           "^/liquidtestnet": "" | ||||||
|  |       }, | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |       context: ['/liquidtestnet/api/**'], | ||||||
|  |       target: `https://liquid.network`, | ||||||
|  |       secure: false, | ||||||
|  |       changeOrigin: true, | ||||||
|  |       proxyTimeout: 30000, | ||||||
|  |     }, | ||||||
|   ]); |   ]); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user