From 8eb45aa57e9b86c767433eb33443df9e4cc11fa2 Mon Sep 17 00:00:00 2001 From: nutomic Date: Tue, 2 Mar 2021 13:15:06 +0000 Subject: [PATCH] Remove nginx cache --- templates/nginx.conf.j2 | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2 index d46517d..781d6ea 100644 --- a/templates/nginx.conf.j2 +++ b/templates/nginx.conf.j2 @@ -15,9 +15,6 @@ http { } } - proxy_cache_path /var/cache/peertube_frontend levels=1:2 keys_zone=peertube_frontend_cache:10m max_size=100m use_temp_path=off; - proxy_cache_path /var/cache/peertube_video levels=1:2 keys_zone=peertube_video_cache:10m max_size={{ cache_size_gb }}g use_temp_path=off; - geo $bad_user { default 0; 103.114.191.0/24 1; @@ -82,14 +79,6 @@ ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECD proxy_read_timeout 600; send_timeout 600; - # https://www.nginx.com/blog/nginx-caching-guide/ - proxy_cache peertube_frontend_cache; - proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504; - proxy_cache_revalidate on; - proxy_cache_lock on; - proxy_cache_min_uses 5; - #add_header X-Cached $upstream_cache_status; - location ~ ^/client/(.*\.(js|css|woff2|otf|ttf|woff|eot))$ { proxy_pass http://peertube:9000; add_header Cache-Control "public, max-age=31536000, immutable";