From e462da97c6cb67ebf94062fc12c55dc993be3083 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sun, 23 May 2021 21:58:43 +0000 Subject: [PATCH] Update tube.conf --- tube.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tube.conf b/tube.conf index 9754698..6ab7dbf 100644 --- a/tube.conf +++ b/tube.conf @@ -168,7 +168,7 @@ 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 - root /var/lib/peertube; + root /usr/share/webapps/peertube; try_files /storage/client-overrides/$1 /peertube-latest/client/dist/$1 @api; } @@ -177,7 +177,7 @@ server { location ~ ^/client/(.*\.(js|css|png|svg|woff2|otf|ttf|woff|eot))$ { add_header Cache-Control "public, max-age=31536000, immutable"; # Cache 1 year - alias /var/lib/peertube/peertube-latest/client/dist/$1; + alias /usr/share/webapps/peertube/client/dist/$1; } # Bypass PeerTube for performance reasons. Optional.