From: Rigel Kent Date: Tue, 17 Nov 2020 10:40:14 +0000 (+0100) Subject: fix internal redirection cycle whithin nginx client-override optimization X-Git-Tag: v3.0.0-rc.1~318 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;ds=sidebyside;h=901c36d5f44e02436da5f5c2899666329ff2eb5b;p=github%2FChocobozzz%2FPeerTube.git fix internal redirection cycle whithin nginx client-override optimization --- diff --git a/support/nginx/peertube b/support/nginx/peertube index 25c786a86..ceb434390 100644 --- a/support/nginx/peertube +++ b/support/nginx/peertube @@ -158,7 +158,9 @@ server { location ~ ^/client/(assets/images/(icons/icon-36x36\.png|icons/icon-48x48\.png|icons/icon-72x72\.png|icons/icon-96x96\.png|icons/icon-144x144\.png|icons/icon-192x192\.png|icons/icon-512x512\.png|logo\.svg|favicon\.png))$ { add_header Cache-Control "public, max-age=31536000, immutable"; # Cache 1 year - try_files /client-overrides/$1 $uri; + root /var/www/peertube; + + try_files /storage/client-overrides/$1 /peertube-latest/client/dist/$1 /; } # Bypass PeerTube for performance reasons. Optional.