From 1e7e0046c876d329517ce9d13673c8e82f6071a8 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Mon, 24 May 2021 14:59:01 +0000 Subject: [PATCH] Update tube.conf --- tube.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tube.conf b/tube.conf index 6ab7dbf..016a3b5 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 /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 '*';