From b7c57021a84b7a4b16013676cdced20bf6fc7944 Mon Sep 17 00:00:00 2001 From: Marius Alwan Meyer <22202402+Sporqist@users.noreply.github.com> Date: Sat, 11 Mar 2023 21:26:50 +0100 Subject: [PATCH] [FIX] entferne mailer Passwort aus environment.env --- templates/docker-compose.yaml.j2 | 1 + templates/environment.env.j2 | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/templates/docker-compose.yaml.j2 b/templates/docker-compose.yaml.j2 index baea879..86ee29e 100644 --- a/templates/docker-compose.yaml.j2 +++ b/templates/docker-compose.yaml.j2 @@ -25,6 +25,7 @@ services: user: "{{ git_user.uid }}:{{ git_user.group }}" env_file: ./environment.env environment: + - GITEA__mailer__PASSWD={{ vault[inventory_hostname]['gitea']['mailer']['passwd'] | default('') }} - GITEA__database__DB_TYPE=mysql - GITEA__database__HOST=db:3306 - GITEA__database__NAME=gitea diff --git a/templates/environment.env.j2 b/templates/environment.env.j2 index 82c5518..8ec4ca6 100644 --- a/templates/environment.env.j2 +++ b/templates/environment.env.j2 @@ -59,9 +59,6 @@ GITEA__mailer__ENABLE_HELO={{ gitea_vars.mailer.enable_helo }} {% if 'user' in gitea_vars['mailer'] %} GITEA__mailer__USER={{ gitea_vars.mailer.user }} {% endif %} -{% if 'passwd' in gitea_vars['mailer'] %} -GITEA__mailer__PASSWD={{ gitea_vars.mailer.passwd }} -{% endif %} {% endif %} {# /mailer #} {% if 'repository' in gitea_vars %}