[fix] role:gitea-and-nginx

This commit is contained in:
Christian Fraß 2024-07-09 13:08:09 +02:00
parent 573a98965d
commit fd9a8ee494

View file

@ -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 %}