mirror of
https://github.com/mempool/mempool.git
synced 2026-08-13 12:33:11 +02:00
ops: Change /slurp to /sip, route everything to SSR
This commit is contained in:
parent
0144c052a4
commit
b8d8c80f0b
2 changed files with 7 additions and 7 deletions
|
|
@ -6,7 +6,7 @@ proxy_cache_path /var/cache/nginx/apinormal keys_zone=apinormal:500m levels=1:2
|
|||
proxy_cache_path /var/cache/nginx/apicold keys_zone=apicold:200m levels=1:2 inactive=60d max_size=2000m;
|
||||
|
||||
proxy_cache_path /var/cache/nginx/unfurler keys_zone=unfurler:200m levels=1:2 inactive=30d max_size=2000m;
|
||||
proxy_cache_path /var/cache/nginx/slurper keys_zone=slurper:500m levels=1:2 inactive=60d max_size=5000m;
|
||||
proxy_cache_path /var/cache/nginx/sipper keys_zone=sipper:500m levels=1:2 inactive=60d max_size=5000m;
|
||||
|
||||
types_hash_max_size 8192;
|
||||
|
||||
|
|
|
|||
|
|
@ -125,8 +125,8 @@ location /unfurl/ {
|
|||
location /ssr/ {
|
||||
try_files /dev/null @mempool-space-ssr;
|
||||
}
|
||||
location /slurp/ {
|
||||
try_files /dev/null @mempool-space-slurper;
|
||||
location /sip/ {
|
||||
try_files /dev/null @mempool-space-sipper;
|
||||
}
|
||||
|
||||
# add hack for twitter widget
|
||||
|
|
@ -161,7 +161,7 @@ location / {
|
|||
}
|
||||
|
||||
location @mempool-space-unfurler {
|
||||
proxy_pass $mempoolSpaceUnfurler;
|
||||
proxy_pass $mempoolSpaceSSR;
|
||||
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
|
|
@ -195,8 +195,8 @@ location @mempool-space-ssr {
|
|||
expires 5m;
|
||||
}
|
||||
|
||||
location @mempool-space-slurper {
|
||||
proxy_pass $mempoolSpaceUnfurler;
|
||||
location @mempool-space-sipper {
|
||||
proxy_pass $mempoolSpaceSSR;
|
||||
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
|
|
@ -205,7 +205,7 @@ location @mempool-space-slurper {
|
|||
|
||||
proxy_cache_background_update on;
|
||||
proxy_cache_use_stale updating;
|
||||
proxy_cache slurper;
|
||||
proxy_cache sipper;
|
||||
proxy_cache_valid 200 1h; # will re-render page if older than this
|
||||
proxy_redirect off;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue