diff --git a/conf/nginx.conf b/conf/nginx.conf index 2a4f700..79b857b 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -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; + } }