diff --git a/roles/gitea-and-nginx/templates/conf.j2 b/roles/gitea-and-nginx/templates/conf.j2 index 73cb4bd..74e595f 100644 --- a/roles/gitea-and-nginx/templates/conf.j2 +++ b/roles/gitea-and-nginx/templates/conf.j2 @@ -1,4 +1,4 @@ -{% macro gitea_common %} +{% macro gitea_common() %} location / { proxy_pass http://localhost:3456; client_max_body_size 20M; @@ -14,7 +14,7 @@ server { {% if var_gitea_and_nginx_tls_mode == 'force' %} return 301 https://$http_host$request_uri; {% else %} - {{ gitea_common() }} +{{ gitea_common() }} {% endif %} } @@ -29,6 +29,6 @@ server { ssl_certificate /etc/ssl/fullchains/{{var_gitea_and_nginx_domain}}.pem; include /etc/nginx/ssl-hardening.conf; - {{ gitea_common() }} +{{ gitea_common() }} } {% endif %}