2022-11-11 17:52:53 +01:00
|
|
|
|
2023-03-09 11:28:17 +01:00
|
|
|
# ANSIBLE-MANAGED
|
|
|
|
#
|
|
|
|
# -- Diese Datei wird via Ansible verwaltet und automatisch überschrieben!
|
|
|
|
# https://azubi-gitea.int.sernet.de/mmeyer/ansible-role-gitea/src/branch/main/templates/environment.env.j2
|
|
|
|
|
2022-11-11 17:52:53 +01:00
|
|
|
USER_UID={{ git_user.uid }}
|
|
|
|
USER_GID={{ git_user.group }}
|
2022-11-11 17:57:30 +01:00
|
|
|
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
|
|
|
|
|
2022-11-11 17:57:30 +01:00
|
|
|
{% 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 %}
|
2022-11-11 17:57:30 +01:00
|
|
|
{% 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 %}
|
2022-11-11 17:57:30 +01:00
|
|
|
{% 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 %}
|
2022-11-11 17:57:30 +01:00
|
|
|
{% 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 %}
|
2022-11-11 17:57:30 +01:00
|
|
|
{% 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 %}
|
2022-11-11 17:57:30 +01:00
|
|
|
{% 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 %}
|
2022-11-11 17:57:30 +01:00
|
|
|
{% 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 #}
|
|
|
|
|
2022-11-11 17:57:30 +01:00
|
|
|
{% 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 %}
|
2022-11-11 17:57:30 +01:00
|
|
|
{% if 'from' in gitea_vars['mailer'] %}
|
2023-03-11 20:56:41 +01:00
|
|
|
GITEA__mailer__FROM={{ gitea_vars.mailer.from }}
|
2022-11-11 17:52:53 +01:00
|
|
|
{% endif %}
|
2023-03-11 19:56:56 +01:00
|
|
|
{% if 'protocol' in gitea_vars['mailer'] %}
|
|
|
|
GITEA__mailer__PROTOCOL={{ gitea_vars.mailer.protocol }}
|
|
|
|
{% endif %}
|
|
|
|
{% if 'smtp_addr' in gitea_vars['mailer'] %}
|
|
|
|
GITEA__mailer__SMTP_ADDR={{ gitea_vars.mailer.smtp_addr }}
|
|
|
|
{% endif %}
|
|
|
|
{% if 'smtp_port' in gitea_vars['mailer'] %}
|
|
|
|
GITEA__mailer__SMTP_PORT={{ gitea_vars.mailer.smtp_port }}
|
|
|
|
{% endif %}
|
|
|
|
{% if 'enable_helo' in gitea_vars['mailer'] %}
|
|
|
|
GITEA__mailer__ENABLE_HELO={{ gitea_vars.mailer.enable_helo }}
|
|
|
|
{% endif %}
|
|
|
|
{% if 'user' in gitea_vars['mailer'] %}
|
|
|
|
GITEA__mailer__USER={{ gitea_vars.mailer.user }}
|
|
|
|
{% endif %}
|
2022-11-11 17:52:53 +01:00
|
|
|
{% endif %} {# /mailer #}
|
|
|
|
|
2022-11-11 17:57:30 +01:00
|
|
|
{% 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 %}
|
2022-11-11 17:57:30 +01:00
|
|
|
{% 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 %}
|
2022-11-11 17:57:30 +01:00
|
|
|
{% 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 #}
|
|
|
|
|
2022-12-02 15:49:48 +01:00
|
|
|
{% if 'attachment' in gitea_vars %}
|
|
|
|
{% if 'enabled' in gitea_vars['attachment'] %}
|
|
|
|
GITEA__attachment__ENABLED={{ gitea_vars.attachment.enabled }}
|
|
|
|
{% endif %}
|
|
|
|
{% if 'allowed_types' in gitea_vars['attachment'] %}
|
|
|
|
GITEA__attachment__ALLOWED_TYPES={{ gitea_vars.attachment.allowed_types }}
|
|
|
|
{% endif %}
|
|
|
|
{% if 'max_size' in gitea_vars['attachment'] %}
|
|
|
|
GITEA__attachment__MAX_SIZE={{ gitea_vars.attachment.max_size }}
|
|
|
|
{% endif %}
|
|
|
|
{% if 'max_files' in gitea_vars['attachment'] %}
|
|
|
|
GITEA__attachment__MAX_FILES={{ gitea_vars.attachment.max_files }}
|
|
|
|
{% endif %}
|
|
|
|
{% if 'storage_type' in gitea_vars['attachment'] %}
|
|
|
|
GITEA__attachment__STORAGE_TYPE={{ gitea_vars.attachment.storage_type }}
|
|
|
|
{% endif %}
|
|
|
|
{% if 'serve_direct' in gitea_vars['attachment'] %}
|
|
|
|
GITEA__attachment__SERVE_DIRECT={{ gitea_vars.attachment.serve_direct }}
|
|
|
|
{% endif %}
|
|
|
|
{% if 'path' in gitea_vars['attachment'] %}
|
|
|
|
GITEA__attachment__PATH={{ gitea_vars.attachment.path }}
|
|
|
|
{% endif %}
|
|
|
|
{% if 'minio_endpoint' in gitea_vars['attachment'] %}
|
|
|
|
GITEA__attachment__MINIO_ENDPOINT={{ gitea_vars.attachment.minio_endpoint }}
|
|
|
|
{% endif %}
|
|
|
|
{% if 'minio_access_key_id' in gitea_vars['attachment'] %}
|
|
|
|
GITEA__attachment__MINIO_ACCESS_KEY_ID={{ gitea_vars.attachment.minio_access_key_id }}
|
|
|
|
{% endif %}
|
|
|
|
{% if 'minio_secret_access_key' in gitea_vars['attachment'] %}
|
|
|
|
GITEA__attachment__MINIO_SECRET_ACCESS_KEY={{ gitea_vars.attachment.minio_secret_access_key }}
|
|
|
|
{% endif %}
|
|
|
|
{% if 'minio_bucket' in gitea_vars['attachment'] %}
|
|
|
|
GITEA__attachment__MINIO_BUCKET={{ gitea_vars.attachment.minio_bucket }}
|
|
|
|
{% endif %}
|
|
|
|
{% if 'minio_location' in gitea_vars['attachment'] %}
|
|
|
|
GITEA__attachment__MINIO_LOCATION={{ gitea_vars.attachment.minio_location }}
|
|
|
|
{% endif %}
|
|
|
|
{% if 'minio_base_path' in gitea_vars['attachment'] %}
|
|
|
|
GITEA__attachment__MINIO_BASE_PATH={{ gitea_vars.attachment.minio_base_path }}
|
|
|
|
{% endif %}
|
|
|
|
{% if 'minio_use_ssl' in gitea_vars['attachment'] %}
|
|
|
|
GITEA__attachment__MINIO_USE_SSL={{ gitea_vars.attachment.minio_use_ssl }}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %} {# /attachment #}
|
|
|
|
|
2023-03-11 20:08:57 +01:00
|
|
|
{% if 'log' in gitea_vars %}
|
|
|
|
{% if 'root_path' in gitea_vars['log'] %}
|
2023-03-11 21:22:50 +01:00
|
|
|
GITEA__log__ROOT_PATH={{ gitea_vars.log.root_path }}
|
2023-03-11 20:08:57 +01:00
|
|
|
{% endif %}
|
|
|
|
{% if 'mode' in gitea_vars['log'] %}
|
2023-03-11 21:22:50 +01:00
|
|
|
GITEA__log__MODE={{ gitea_vars.log.mode }}
|
2023-03-11 20:08:57 +01:00
|
|
|
{% endif %}
|
|
|
|
{% if 'level' in gitea_vars['log'] %}
|
2023-03-11 21:22:50 +01:00
|
|
|
GITEA__log__LEVEL={{ gitea_vars.log.level }}
|
2023-03-11 20:08:57 +01:00
|
|
|
{% endif %}
|
|
|
|
{% if 'stacktrace_level' in gitea_vars['log'] %}
|
2023-03-11 21:22:50 +01:00
|
|
|
GITEA__log__STACKTRACE_LEVEL={{ gitea_vars.log.stacktrace_level }}
|
2023-03-11 20:08:57 +01:00
|
|
|
{% endif %}
|
2023-03-11 21:22:50 +01:00
|
|
|
{% if 'enable_log_log' in gitea_vars['log'] %}
|
|
|
|
GITEA__log__ENABLE_log_LOG={{ gitea_vars.log.enable_log_log }}
|
2023-03-11 20:08:57 +01:00
|
|
|
{% endif %}
|
|
|
|
{% if 'enable_xorm_log' in gitea_vars['log'] %}
|
2023-03-11 21:22:50 +01:00
|
|
|
GITEA__log__ENABLE_XORM_LOG={{ gitea_vars.log.enable_xorm_log }}
|
2023-03-11 20:08:57 +01:00
|
|
|
{% endif %}
|
|
|
|
{% endif %} {# /logging#}
|
|
|
|
|
2022-11-11 17:57:30 +01:00
|
|
|
{% 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 %}
|
2022-11-11 17:57:30 +01:00
|
|
|
{% 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 %}
|
2022-11-11 17:57:30 +01:00
|
|
|
{% 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 %}
|
2022-11-11 17:57:30 +01:00
|
|
|
{% 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 #}
|