aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/nginx
diff options
context:
space:
mode:
Diffstat (limited to 'support/nginx')
-rw-r--r--support/nginx/peertube10
1 files changed, 10 insertions, 0 deletions
diff --git a/support/nginx/peertube b/support/nginx/peertube
index 7f2c0f263..e58659030 100644
--- a/support/nginx/peertube
+++ b/support/nginx/peertube
@@ -58,6 +58,16 @@ server {
58 } 58 }
59 59
60 # Bypass PeerTube for performance reasons. Could be removed 60 # Bypass PeerTube for performance reasons. Could be removed
61 # Should be consistent with client-overrides assets list in /server/controllers/client.ts
62 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))$ {
63 add_header Cache-Control "public, max-age=31536000, immutable";
64
65 root /var/www/peertube/storage/client-overrides;
66
67 try_files /$1 $uri;
68 }
69
70 # Bypass PeerTube for performance reasons. Could be removed
61 location ~ ^/client/(.*\.(js|css|png|svg|woff2|otf|ttf|woff|eot))$ { 71 location ~ ^/client/(.*\.(js|css|png|svg|woff2|otf|ttf|woff|eot))$ {
62 add_header Cache-Control "public, max-age=31536000, immutable"; 72 add_header Cache-Control "public, max-age=31536000, immutable";
63 73