mirror of
https://github.com/mempool/mempool.git
synced 2026-08-13 12:33:11 +02:00
Fix nginx configuration for liquid assets APIs
This commit is contained in:
parent
4c2c6396ba
commit
01d6f4f737
3 changed files with 12 additions and 13 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue