1
0
Fork 0
forked from exozyme/nginx

Update tube.conf

This commit is contained in:
Anthony Wang 2021-05-24 14:59:01 +00:00 committed by GitHub
parent e462da97c6
commit 1e7e0046c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 /usr/share/webapps/peertube;
root /var/lib/peertube;
try_files /storage/client-overrides/$1 /peertube-latest/client/dist/$1 @api;
}
@ -215,9 +215,9 @@ server {
}
# Use this line with nginx >= 1.17.0
#limit_rate $peertube_limit_rate;
limit_rate $peertube_limit_rate;
# Or this line if your nginx < 1.17.0
set $limit_rate $peertube_limit_rate;
#set $limit_rate $peertube_limit_rate;
if ($request_method = 'OPTIONS') {
add_header Access-Control-Allow-Origin '*';