mirror of
https://github.com/mempool/mempool.git
synced 2025-01-18 05:12:35 +01:00
Proxy /api/v1/contributors from mempool.space, also fix HTTP headers
Fixes #366
This commit is contained in:
parent
7beb832007
commit
a52f98c39d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user