Fix Liquid proxy settings
This commit is contained in:
		
							parent
							
								
									3a67bc6425
								
							
						
					
					
						commit
						35e69f2e3d
					
				@ -61,10 +61,7 @@ PROXY_CONFIG = [
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        context: ['/api/liquidtestnet**', '/liquidtestnet/api/**'],
 | 
					        context: ['/api/liquidtestnet**', '/liquidtestnet/api/**'],
 | 
				
			||||||
        target: "https://liquid.network/testnet",
 | 
					        target: "https://liquid.network",
 | 
				
			||||||
        pathRewrite: {
 | 
					 | 
				
			||||||
            "^/api/liquidtestnet/": "/liquidtestnet/api"
 | 
					 | 
				
			||||||
        },
 | 
					 | 
				
			||||||
        ws: true,
 | 
					        ws: true,
 | 
				
			||||||
        secure: false,
 | 
					        secure: false,
 | 
				
			||||||
        changeOrigin: true
 | 
					        changeOrigin: true
 | 
				
			||||||
@ -73,7 +70,9 @@ PROXY_CONFIG = [
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
if (configContent && configContent.BASE_MODULE == "liquid") {
 | 
					if (configContent && configContent.BASE_MODULE == "liquid") {
 | 
				
			||||||
    PROXY_CONFIG.push({
 | 
					    PROXY_CONFIG.push({
 | 
				
			||||||
        context: ['/resources/pools.json', '/resources/assets.json', '/resources/assets.minimal.json'],
 | 
					        context: ['/resources/pools.json',
 | 
				
			||||||
 | 
					            '/resources/assets.json', '/resources/assets.minimal.json',
 | 
				
			||||||
 | 
					            '/resources/assets-testnet.json', '/resources/assets-testnet.minimal.json'],
 | 
				
			||||||
        target: "https://liquid.network",
 | 
					        target: "https://liquid.network",
 | 
				
			||||||
        secure: false,
 | 
					        secure: false,
 | 
				
			||||||
        changeOrigin: true,
 | 
					        changeOrigin: true,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user