diff --git a/roles/hedgedoc-and-nginx/templates/conf.j2 b/roles/hedgedoc-and-nginx/templates/conf.j2 index b6c6521..2212af7 100644 --- a/roles/hedgedoc-and-nginx/templates/conf.j2 +++ b/roles/hedgedoc-and-nginx/templates/conf.j2 @@ -29,7 +29,7 @@ server { listen 80; listen [::]:80; -{% if (var_element_and_nginx_tls_mode == 'force') %} +{% if (cfg_hedgedoc_and_nginx.tls_mode == 'force') %} return 301 https://$http_host$request_uri; {% else %} {{ hedgedoc_common() }}