From fd9a8ee494f7864c163731cb0e30ae18e694d0d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Fra=C3=9F?= Date: Tue, 9 Jul 2024 13:08:09 +0200 Subject: [PATCH] [fix] role:gitea-and-nginx --- roles/gitea-and-nginx/templates/conf.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 %}