diff --git a/conf/nginx.conf b/conf/nginx.conf index e894736..ba159c8 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -96,7 +96,7 @@ location ~ ^/plugins/[^/]+(/[^/]+)?/ws/ { # For extra performance please refer to https://github.com/denji/nginx-tuning ## -root __DATA_DIR__storage/; +root __DATA_DIR__/storage/; # Enable compression for JS/CSS/HTML, for improved client load times. # It might be nice to compress JSON/XML as returned by the API, but # leaving that out to protect against potential BREACH attack. @@ -134,7 +134,7 @@ tcp_nodelay on; # don't buffer data sent, good for small data burs 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|default-playlist\.jpg|default-avatar-account\.png|default-avatar-account-48x48\.png|default-avatar-video-channel\.png|default-avatar-video-channel-48x48\.png))$ { more_set_headers "Cache-Control : public, max-age=31536000, immutable"; # Cache 1 year - try_files __DATA_DIR__storage/client-overrides/$1 __INSTALL_DIR__/client/dist/$1 @api; + try_files __DATA_DIR__/storage/client-overrides/$1 __INSTALL_DIR__/client/dist/$1 @api; } # Bypass PeerTube for performance reasons. Optional. @@ -163,7 +163,7 @@ location ~ ^/static/(thumbnails|avatars)/ { rewrite ^/static/(.*)$ /$1 break; - root __DATA_DIR__storage/; + root __DATA_DIR__/storage/; try_files $uri @api; } @@ -220,7 +220,7 @@ location ~ ^/static/(webseed|web-videos|redundancy|streaming-playlists)/ { rewrite ^/static/webseed/(.*)$ /web-videos/$1 break; rewrite ^/static/(.*)$ /$1 break; - root __DATA_DIR__storage/; + root __DATA_DIR__/storage/; try_files $uri @api; }