From 3f6d054dbb1fb0293f03f57486445b0e0a84d1eb Mon Sep 17 00:00:00 2001 From: Marius Alwan Meyer <22202402+Sporqist@users.noreply.github.com> Date: Fri, 2 Dec 2022 15:49:48 +0100 Subject: [PATCH] =?UTF-8?q?Alle=20'attachment'=20Umgebungsvariablen=20unte?= =?UTF-8?q?rst=C3=BCtzt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/environment.env.j2 | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) 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'] %}