[FIX] entferne mailer Passwort aus environment.env

This commit is contained in:
Marius Alwan Meyer 2023-03-11 21:26:50 +01:00
parent 58d7a6a660
commit b7c57021a8
2 changed files with 1 additions and 3 deletions

View File

@ -25,6 +25,7 @@ services:
user: "{{ git_user.uid }}:{{ git_user.group }}" user: "{{ git_user.uid }}:{{ git_user.group }}"
env_file: ./environment.env env_file: ./environment.env
environment: environment:
- GITEA__mailer__PASSWD={{ vault[inventory_hostname]['gitea']['mailer']['passwd'] | default('') }}
- GITEA__database__DB_TYPE=mysql - GITEA__database__DB_TYPE=mysql
- GITEA__database__HOST=db:3306 - GITEA__database__HOST=db:3306
- GITEA__database__NAME=gitea - GITEA__database__NAME=gitea

View File

@ -59,9 +59,6 @@ GITEA__mailer__ENABLE_HELO={{ gitea_vars.mailer.enable_helo }}
{% if 'user' in gitea_vars['mailer'] %} {% if 'user' in gitea_vars['mailer'] %}
GITEA__mailer__USER={{ gitea_vars.mailer.user }} GITEA__mailer__USER={{ gitea_vars.mailer.user }}
{% endif %} {% endif %}
{% if 'passwd' in gitea_vars['mailer'] %}
GITEA__mailer__PASSWD={{ gitea_vars.mailer.passwd }}
{% endif %}
{% endif %} {# /mailer #} {% endif %} {# /mailer #}
{% if 'repository' in gitea_vars %} {% if 'repository' in gitea_vars %}