diff --git a/conf/nginx.conf b/conf/nginx.conf index a241789..de3624c 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -5,7 +5,12 @@ location PATHTOCHANGE/ { proxy_buffering off; fastcgi_param REMOTE_USER $remote_user; client_max_body_size 50M; + + # Force https + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; -} \ No newline at end of file +}