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:
parent
619b445a77
commit
c103567428
1 changed files with 2 additions and 2 deletions
|
@ -168,7 +168,7 @@ location ~ ^/static/(thumbnails|avatars)/ {
|
||||||
try_files $uri @api;
|
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
|
# 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;
|
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.
|
# 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;
|
limit_rate_after 5M;
|
||||||
|
|
||||||
set $peertube_limit_rate 5M;
|
set $peertube_limit_rate 5M;
|
||||||
|
|
Loading…
Add table
Reference in a new issue