From ce3b599babea5e99868797db87501457e6b8b5aa Mon Sep 17 00:00:00 2001 From: wiz Date: Thu, 31 Aug 2023 02:36:22 +0900 Subject: [PATCH] ops: Add `/api/v1/services` route for new backend --- production/nginx/location-api-v1-services.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/production/nginx/location-api-v1-services.conf b/production/nginx/location-api-v1-services.conf index aae49727e..4759fe1ec 100644 --- a/production/nginx/location-api-v1-services.conf +++ b/production/nginx/location-api-v1-services.conf @@ -1,3 +1,15 @@ +location /api/v1/services { + proxy_pass $mempoolSpaceServices; + proxy_cache services; + proxy_cache_background_update on; + proxy_cache_use_stale updating; + proxy_cache_valid 200 1d; + expires 1d; + proxy_hide_header onion-location; + proxy_hide_header strict-transport-security; + proxy_hide_header content-security-policy; + proxy_hide_header x-frame-options; +} location /api/v1/contributors/images { proxy_pass $mempoolSpaceServices; proxy_cache services;