diff --git a/backend/templates/_access.conf b/backend/templates/_access.conf index 4f38854513..f864068452 100644 --- a/backend/templates/_access.conf +++ b/backend/templates/_access.conf @@ -1,4 +1,10 @@ {% if access_list_id > 0 %} + {% if ssl_forced == 1 or ssl_forced == true %} + if ($scheme = "http") { + return 301 https://$host$request_uri; + } + {% endif %} + {% if access_list.items.length > 0 %} # Authorization auth_basic "Authorization required";