diff --git a/conf/nginx.conf b/conf/nginx.conf index d0361fa..defb298 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -31,6 +31,10 @@ location __PATH__ { alias __FINALPATH__/; +if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; +} + rewrite ^ https://$server_name$request_uri? permanent; #allow uploads up to 20MB in size