diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-29 14:58:41 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-07-29 14:58:41 +0200 |
commit | c928e1364fbdff87f27fd982710b95426a250491 (patch) | |
tree | 7cdf949f4dca2aeb9b9301e4a41dd534c093f4d8 /support/nginx/peertube | |
parent | 1f82e3e88550ea73043a17e7236d4fcfe3a49d28 (diff) | |
download | PeerTube-c928e1364fbdff87f27fd982710b95426a250491.tar.gz PeerTube-c928e1364fbdff87f27fd982710b95426a250491.tar.zst PeerTube-c928e1364fbdff87f27fd982710b95426a250491.zip |
Improve nginx client images cache
Diffstat (limited to 'support/nginx/peertube')
-rw-r--r-- | support/nginx/peertube | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/nginx/peertube b/support/nginx/peertube index fee0f5d1c..aca985785 100644 --- a/support/nginx/peertube +++ b/support/nginx/peertube | |||
@@ -59,7 +59,7 @@ server { | |||
59 | } | 59 | } |
60 | 60 | ||
61 | # Bypass PeerTube for performance reasons. Could be removed | 61 | # Bypass PeerTube for performance reasons. Could be removed |
62 | location ~ ^/client/(.*\.(js|css|woff2|otf|ttf|woff|eot))$ { | 62 | location ~ ^/client/(.*\.(js|css|png|svg|woff2|otf|ttf|woff|eot))$ { |
63 | add_header Cache-Control "public, max-age=31536000, immutable"; | 63 | add_header Cache-Control "public, max-age=31536000, immutable"; |
64 | 64 | ||
65 | alias /var/www/peertube/peertube-latest/client/dist/$1; | 65 | alias /var/www/peertube/peertube-latest/client/dist/$1; |