diff --git a/templates/environment.env.j2 b/templates/environment.env.j2 index 0ac887b..1d6538f 100644 --- a/templates/environment.env.j2 +++ b/templates/environment.env.j2 @@ -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'] %}