mirror of
https://github.com/YunoHost-Apps/streama_ynh.git
synced 2024-09-03 20:26:30 +02:00
Update nginx.conf
This commit is contained in:
parent
20fa6b92dd
commit
38bed616a3
1 changed files with 8 additions and 1 deletions
|
@ -8,6 +8,13 @@ location __PATH__/ {
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection $http_connection;
|
proxy_set_header Connection $http_connection;
|
||||||
rewrite ^__PATH__/(.*)$ /$1 break;
|
rewrite ^__PATH__/(.*)$ /$1 break;
|
||||||
client_max_body_size 128g; # allows larger files (like videos) to be uploaded.
|
|
||||||
|
# Upload Size.
|
||||||
|
client_max_body_size 128g;
|
||||||
|
|
||||||
|
# Force usage of https
|
||||||
|
if ($scheme = http) {
|
||||||
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue