1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/peertube_ynh.git synced 2024-09-03 19:56:29 +02:00

Update nginx.conf

This commit is contained in:
Éric Gaspar 2023-12-29 18:51:24 +01:00
parent 5b3a24c6fe
commit f0c3056f78

View file

@ -168,7 +168,7 @@ location ~ ^/static/(thumbnails|avatars)/ {
try_files $uri @api;
}
location ~ ^(/static/(webseed|web-videos|streaming-playlists)/private/)|^/download {
location ~ ^(/static/(webseed|videos|streaming-playlists)/private/)|^/download {
# We can't rate limit a try_files directive, so we need to duplicate @api
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@ -181,7 +181,7 @@ location ~ ^(/static/(webseed|web-videos|streaming-playlists)/private/)|^/downlo
}
# Bypass PeerTube for performance reasons. Optional.
location ~ ^/static/(webseed|web-videos|redundancy|streaming-playlists)/ {
location ~ ^/static/(webseed|videos|redundancy|streaming-playlists)/ {
limit_rate_after 5M;
set $peertube_limit_rate 5M;
@ -217,7 +217,7 @@ location ~ ^/static/(webseed|web-videos|redundancy|streaming-playlists)/ {
aio threads;
# web-videos is the name of the directory mapped to the `storage.web_videos` key in your PeerTube configuration
rewrite ^/static/webseed/(.*)$ /web-videos/$1 break;
rewrite ^/static/webseed/(.*)$ /videos/$1 break;
rewrite ^/static/(.*)$ /$1 break;
root __DATA_DIR__/storage/;