diff --git a/production/nginx-mempool.conf b/production/nginx-mempool.conf index e0489ad0b..3c11c0e6e 100644 --- a/production/nginx-mempool.conf +++ b/production/nginx-mempool.conf @@ -102,16 +102,37 @@ try_files $uri $uri/ /en-US/index.html =404; } - # mainnet API - location /api/v1/donations { - proxy_pass https://node220.bitcoin.wiz.biz; + # serivces API + location /api/v1/contributors { # don't rate limit this API prefix + proxy_pass https://node220.bitcoin.wiz.biz; + 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/donations { + # don't rate limit this API prefix + proxy_pass https://node220.bitcoin.wiz.biz; + 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/donations/images { + # don't rate limit this API prefix proxy_pass https://node220.bitcoin.wiz.biz; proxy_cache services; proxy_cache_valid 200 1d; + expires 7d; + add_header Cache-Control "public, no-transform"; + proxy_hide_header onion-location; + proxy_hide_header strict-transport-security; + proxy_hide_header content-security-policy; + proxy_hide_header x-frame-options; } + + # mainnet API location /api/v1/ws { proxy_pass http://127.0.0.1:8999/; proxy_http_version 1.1;