[fix] role:gitea-and-nginx

This commit is contained in:
Christian Fraß 2024-07-09 13:23:36 +02:00
parent 82861a4778
commit f653df336e
3 changed files with 6 additions and 1 deletions

View file

@ -1,4 +1,5 @@
{
"var_gitea_and_nginx_domain": "gitea.example.org",
"var_gitea_and_nginx_port": 2378,
"var_gitea_and_nginx_tls_mode": "enable"
}

View file

@ -1,6 +1,6 @@
{% macro gitea_common() %}
location / {
proxy_pass http://localhost:3456;
proxy_pass http://localhost:{{var_gitea_and_nginx_port | string}};
client_max_body_size 20M;
}
{% endmacro %}

View file

@ -3,6 +3,10 @@
"mandatory": false,
"type": "string"
},
"port": {
"mandatory": false,
"type": "integer"
},
"tls_mode": {
"mandatory": false,
"type": "string",