mirror of
https://github.com/mempool/mempool.git
synced 2024-11-19 18:03:00 +01:00
ops: Set nginx no-cache headers for /api/v1/services/auth
This commit is contained in:
parent
5e45d8f3bc
commit
82a43e25e0
@ -10,6 +10,18 @@ location /api/v1/services/account {
|
||||
proxy_hide_header content-security-policy;
|
||||
proxy_hide_header x-frame-options;
|
||||
}
|
||||
location /api/v1/services/auth {
|
||||
proxy_pass $mempoolSpaceServices;
|
||||
expires -1;
|
||||
add_header 'Pragma' 'no-cache';
|
||||
add_header 'Cache-Control' 'private, no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
|
||||
proxy_hide_header Cache-Control;
|
||||
proxy_hide_header Expires;
|
||||
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/services {
|
||||
proxy_pass $mempoolSpaceServices;
|
||||
proxy_cache services;
|
||||
|
Loading…
Reference in New Issue
Block a user