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:
oufmilo 2021-06-07 20:47:30 +02:00 committed by GitHub
parent 3f3a3d93e4
commit 50171b40da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,13 @@ location @api {
proxy_pass http://127.0.0.1:__PORT__;
}
location = /api/v1/videos/upload-resumable {
client_max_body_size 0;
proxy_request_buffering off;
try_files /dev/null @api;
}
location / {
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
@ -30,6 +37,7 @@ location / {
include conf.d/yunohost_panel.conf.inc;
}
location = /api/v1/videos/upload {
limit_except POST HEAD { deny all; }