forked from nutomic/peertube.social
Cache all requests if possible
This commit is contained in:
parent
8f57858461
commit
90bf459c12
1 changed files with 2 additions and 5 deletions
|
@ -69,15 +69,12 @@ http {
|
|||
proxy_send_timeout 600;
|
||||
proxy_read_timeout 600;
|
||||
send_timeout 600;
|
||||
}
|
||||
location ~ ^/(static/(thumbnails|previews|avatars)|client)/ {
|
||||
proxy_pass http://peertube:9000;
|
||||
|
||||
proxy_cache peertube_cache;
|
||||
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
|
||||
proxy_cache_revalidate on;
|
||||
proxy_cache_min_uses 3;
|
||||
proxy_cache_lock on;
|
||||
add_header X-Cached $upstream_cache_status;
|
||||
#add_header X-Cached $upstream_cache_status;
|
||||
}
|
||||
location ~ ^/static/(webseed|redundancy)/ {
|
||||
# NOTE: Its not possible to use proxy_cache for files that are served from disk without complicated workarounds
|
||||
|
|
Loading…
Reference in a new issue