aboutsummaryrefslogtreecommitdiffhomepage
path: root/support
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-11-17 11:40:14 +0100
committerRigel Kent <sendmemail@rigelk.eu>2020-11-17 11:40:14 +0100
commit901c36d5f44e02436da5f5c2899666329ff2eb5b (patch)
treedc1a2f1e3965710feb6e73cf61611dda899e63ec /support
parent5f59cf077fd9f9c0c91c7bb56efbfd5db103bff2 (diff)
downloadPeerTube-901c36d5f44e02436da5f5c2899666329ff2eb5b.tar.gz
PeerTube-901c36d5f44e02436da5f5c2899666329ff2eb5b.tar.zst
PeerTube-901c36d5f44e02436da5f5c2899666329ff2eb5b.zip
fix internal redirection cycle whithin nginx client-override optimization
Diffstat (limited to 'support')
-rw-r--r--support/nginx/peertube4
1 files changed, 3 insertions, 1 deletions
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 {
158 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))$ { 158 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))$ {
159 add_header Cache-Control "public, max-age=31536000, immutable"; # Cache 1 year 159 add_header Cache-Control "public, max-age=31536000, immutable"; # Cache 1 year
160 160
161 try_files /client-overrides/$1 $uri; 161 root /var/www/peertube;
162
163 try_files /storage/client-overrides/$1 /peertube-latest/client/dist/$1 /;
162 } 164 }
163 165
164 # Bypass PeerTube for performance reasons. Optional. 166 # Bypass PeerTube for performance reasons. Optional.