From 99f378fef592af8508728b1bf2f2d8137487280c Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 5 Dec 2021 01:04:17 +0100 Subject: [PATCH] Let Yunohost handle the http->https redirect --- conf/nginx.conf | 5 ----- 1 file changed, 5 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 29ffee3..acafbce 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -6,11 +6,6 @@ location __PATH__/ { client_max_body_size 200M; proxy_set_header X-Real-IP $remote_addr; - # Force https - if ($scheme = http) { - rewrite ^ https://$server_name$request_uri? permanent; - } - # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; }