Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
ad30a8307f
commit
f418990e84
85 changed files with 3520 additions and 2 deletions
19
roles/forgejo/templates/server.env.j2
Normal file
19
roles/forgejo/templates/server.env.j2
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{{ ansible_managed | comment }}
|
||||
USER_UID={{ ansible_facts.getent_passwd.forgejo[1] }}
|
||||
USER_GID={{ ansible_facts.getent_passwd.forgejo[2] }}
|
||||
FORGEJO__server__SSH_PORT={{ forgejo_ssh_port }}
|
||||
FORGEJO__database__DB_TYPE=postgres
|
||||
FORGEJO__database__HOST=db:5432
|
||||
FORGEJO__database__NAME="{{ forgejo_db_database }}"
|
||||
FORGEJO__database__USER="{{ forgejo_db_username }}"
|
||||
FORGEJO__database__PASSWD="{{ forgejo_db_password }}"
|
||||
{% if forgejo_mailer %}
|
||||
{% for k, v in forgejo_mailer.items() %}
|
||||
FORGEJO__mailer__{{ k | upper }}="{{ v }}"
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if forgejo_service %}
|
||||
{% for k, v in forgejo_service.items() %}
|
||||
FORGEJO__service__{{ k | upper }}="{{ v }}"
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue