1
0
Fork 0
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:
liberodark 2020-05-29 14:03:53 +02:00 committed by GitHub
parent 20fa6b92dd
commit 38bed616a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,13 @@ location __PATH__/ {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
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;
}
}