Fix nginx configuration for liquid assets APIs
This commit is contained in:
		
							parent
							
								
									7a8e432ae6
								
							
						
					
					
						commit
						f5edcdbad9
					
				@ -1,12 +0,0 @@
 | 
			
		||||
location /api/v1/assets {
 | 
			
		||||
	proxy_pass $mempoolSpaceServices;
 | 
			
		||||
	proxy_cache services;
 | 
			
		||||
	proxy_cache_background_update on;
 | 
			
		||||
	proxy_cache_use_stale updating;
 | 
			
		||||
	proxy_cache_valid 200 10m;
 | 
			
		||||
	expires 10m;
 | 
			
		||||
	proxy_hide_header onion-location;
 | 
			
		||||
	proxy_hide_header strict-transport-security;
 | 
			
		||||
	proxy_hide_header content-security-policy;
 | 
			
		||||
	proxy_hide_header x-frame-options;
 | 
			
		||||
}
 | 
			
		||||
@ -70,3 +70,15 @@ location /api/v1/translators {
 | 
			
		||||
	proxy_hide_header content-security-policy;
 | 
			
		||||
	proxy_hide_header x-frame-options;
 | 
			
		||||
}
 | 
			
		||||
location /api/v1/assets {
 | 
			
		||||
	proxy_pass $mempoolSpaceServices;
 | 
			
		||||
	proxy_cache services;
 | 
			
		||||
	proxy_cache_background_update on;
 | 
			
		||||
	proxy_cache_use_stale updating;
 | 
			
		||||
	proxy_cache_valid 200 10m;
 | 
			
		||||
	expires 10m;
 | 
			
		||||
	proxy_hide_header onion-location;
 | 
			
		||||
	proxy_hide_header strict-transport-security;
 | 
			
		||||
	proxy_hide_header content-security-policy;
 | 
			
		||||
	proxy_hide_header x-frame-options;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,5 @@
 | 
			
		||||
include mempool/production/nginx/server-common.conf;
 | 
			
		||||
include mempool/production/nginx/location-api-v1-services.conf;
 | 
			
		||||
include mempool/production/nginx/location-api-v1-services-liquid.conf;
 | 
			
		||||
include mempool/production/nginx/location-api.conf;
 | 
			
		||||
include mempool/production/nginx/location-liquid-api.conf;
 | 
			
		||||
include mempool/production/nginx/location-liquidtestnet-api.conf;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user