Browse Source

fix internal redirection cycle whithin nginx client-override optimization

pull/3323/head
Rigel Kent 1 week ago
parent
commit
901c36d5f4
No known key found for this signature in database GPG Key ID: 5E53E96A494E452F
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      support/nginx/peertube

+ 3
- 1
support/nginx/peertube View File

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


Loading…
Cancel
Save