Alle 'attachment' Umgebungsvariablen unterstützt

This commit is contained in:
Marius Alwan Meyer 2022-12-02 15:49:48 +01:00
parent b8ec411c58
commit 3f6d054dbb

View File

@ -53,6 +53,51 @@ GITEA__repository__DEFAULT_PUSH_CREATE_PRIVATE={{ gitea_vars.repository.default_
{% endif %}
{% endif %} {# /repository #}
{% 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 #}
{% if 'ssh' in gitea_vars %}
{% if 'minimum_key_sizes' in gitea_vars['ssh'] %}
{% if 'ed25519' in gitea_vars['ssh']['minimum_key_sizes'] %}