diff --git a/conf/nginx.conf b/conf/nginx.conf index a06ccc7..e14d71f 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -7,14 +7,10 @@ location __PATH__/ { index index.html; # Force usage of https - f ($scheme = http) { + if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; } - # Include SSOWAT user panel. - include conf.d/yunohost_panel.conf.inc; -} - location = __PATH__/http-bind { proxy_pass http://localhost:5290/http-bind; proxy_redirect off; @@ -27,3 +23,7 @@ location __PATH__/ { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection “upgrade”; } + + # Include SSOWAT user panel. + include conf.d/yunohost_panel.conf.inc; +}