[fix] role:gitea-and-nginx
This commit is contained in:
parent
82861a4778
commit
f653df336e
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
"var_gitea_and_nginx_domain": "gitea.example.org",
|
"var_gitea_and_nginx_domain": "gitea.example.org",
|
||||||
|
"var_gitea_and_nginx_port": 2378,
|
||||||
"var_gitea_and_nginx_tls_mode": "enable"
|
"var_gitea_and_nginx_tls_mode": "enable"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{% macro gitea_common() %}
|
{% macro gitea_common() %}
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://localhost:3456;
|
proxy_pass http://localhost:{{var_gitea_and_nginx_port | string}};
|
||||||
client_max_body_size 20M;
|
client_max_body_size 20M;
|
||||||
}
|
}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,10 @@
|
||||||
"mandatory": false,
|
"mandatory": false,
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"port": {
|
||||||
|
"mandatory": false,
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
"tls_mode": {
|
"tls_mode": {
|
||||||
"mandatory": false,
|
"mandatory": false,
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue