Cache all requests if possible

This commit is contained in:
Felix Ableitner 2019-07-15 23:25:12 +02:00
parent 8f57858461
commit 90bf459c12

View file

@ -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