try_files /dev/null @api_websocket;
}
+ # Plugin websocket routes
+ location ~ ^/plugins/[^/]+(/[^/]+)?/ws/ {
+ try_files /dev/null @api_websocket;
+ }
+
##
# Performance optimizations
# For extra performance please refer to https://github.com/denji/nginx-tuning
try_files $uri @api;
}
+ location ~ ^/static/(webseed|streaming-playlists)/private/ {
+ try_files /dev/null @api;
+ }
+
# Bypass PeerTube for performance reasons. Optional.
location ~ ^/static/(webseed|redundancy|streaming-playlists)/ {
limit_rate_after 5M;