ansible-role-gitea/templates/environment.env.j2

71 lines
3.0 KiB
Plaintext
Raw Normal View History

2022-11-11 17:52:53 +01:00
USER_UID={{ git_user.uid }}
USER_GID={{ git_user.group }}
GITEA__APP_NAME={{ gitea_vars.app_name }}
2022-11-11 17:52:53 +01:00
GITEA__RUN_USER={{ git_user.name }}
GITEA__server__ROOT_URL=https://{{ system.hostname }}.{{ system.domain }}/
GITEA__server__Domain={{ system.hostname }}.{{ system.domain }}
GITEA__server__SSH_PORT=22
{% if 'service' in gitea_vars %}
{% if 'disable_registration' in gitea_vars['service'] %}
GITEA__service__DISABLE_REGISTRATION={{ gitea_vars.service.disable_registration }}
2022-11-11 17:52:53 +01:00
{% endif %}
{% if 'require_signin_view' in gitea_vars['service'] %}
GITEA__service__REQUIRE_SIGNIN_VIEW={{ gitea_vars.service.require_signin_view }}
2022-11-11 17:52:53 +01:00
{% endif %}
{% if 'register_email_confirm' in gitea_vars['service'] %}
GITEA__service__REGISTER_EMAIL_CONFIRM={{ gitea_vars.service.register_email_confirm }}
2022-11-11 17:52:53 +01:00
{% endif %}
{% if 'enable_notify_mail' in gitea_vars['service'] %}
GITEA__service__ENABLE_NOTIFY_MAIL={{ gitea_vars.service.enable_notify_mail }}
2022-11-11 17:52:53 +01:00
{% endif %}
{% if 'default_keep_email_private' in gitea_vars['service'] %}
GITEA__service__DEFAULT_KEEP_EMAIL_PRIVATE={{ gitea_vars.service.default_keep_email_private }}
2022-11-11 17:52:53 +01:00
{% endif %}
{% if 'default_allow_create_organization' in gitea_vars['service'] %}
GITEA__service__DEFAULT_ALLOW_CREATE_ORGANIZATION ={{ gitea_vars.service.default_allow_create_organization }}
2022-11-11 17:52:53 +01:00
{% endif %}
{% if 'default_enable_timetracking' in gitea_vars['service'] %}
GITEA__service__DEFAULT_ENABLE_TIMETRACKING={{ gitea_vars.service.default_enable_timetracking }}
2022-11-11 17:52:53 +01:00
{% endif %}
{% endif %} {# /service #}
{% if 'mailer' in gitea_vars %}
{% if 'enabled' in gitea_vars['mailer'] %}
GITEA__mailer__ENABLED={{ gitea_vars.mailer.enabled }}
2022-11-11 17:52:53 +01:00
{% endif %}
{% if 'from' in gitea_vars['mailer'] %}
2022-11-11 17:52:53 +01:00
GITEA__mailer__FROM=git@{{ system.hostname }}.{{ system.domain }}
{% endif %}
{% endif %} {# /mailer #}
{% if 'repository' in gitea_vars %}
{% if 'enable_push_create_user' in gitea_vars['repository']%}
GITEA__repository__ENABLE_PUSH_CREATE_USER={{ gitea_vars.repository.enable_push_create_user }}
2022-11-11 17:52:53 +01:00
{% endif %}
{% if 'enable_push_create_org' in gitea_vars['repository']%}
GITEA__repository__ENABLE_PUSH_CREATE_ORG={{ gitea_vars.repository.enable_push_create_org }}
2022-11-11 17:52:53 +01:00
{% endif %}
{% if 'default_push_create_private' in gitea_vars['repository']%}
GITEA__repository__DEFAULT_PUSH_CREATE_PRIVATE={{ gitea_vars.repository.default_push_create_private }}
2022-11-11 17:52:53 +01:00
{% endif %}
{% endif %} {# /repository #}
{% if 'ssh' in gitea_vars %}
{% if 'minimum_key_sizes' in gitea_vars['ssh'] %}
{% if 'ed25519' in gitea_vars['ssh']['minimum_key_sizes'] %}
GITEA__ssh.minimum_key_sizes__ED25519={{ gitea_vars.ssh.minimum_key_sizes.ed25519 }}
2022-11-11 17:52:53 +01:00
{% endif %}
{% if 'ecdsa' in gitea_vars['ssh']['minimum_key_sizes'] %}
GITEA__ssh.minimum_key_sizes__ECDSA={{ gitea_vars.ssh.minimum_key_sizes.ecdsa }}
2022-11-11 17:52:53 +01:00
{% endif %}
{% if 'rsa' in gitea_vars['ssh']['minimum_key_sizes'] %}
GITEA__ssh.minimum_key_sizes__RSA={{ gitea_vars.ssh.minimum_key_sizes.rsa }}
2022-11-11 17:52:53 +01:00
{% endif %}
{% if 'dsa' in gitea_vars['ssh']['minimum_key_sizes'] %}
GITEA__ssh.minimum_key_sizes__DSA={{ gitea_vars.ssh.minimum_key_sizes.dsa }}
2022-11-11 17:52:53 +01:00
{% endif %}
{% endif %}
{% endif %} {# /ssh #}