Support smtp auth

This commit is contained in:
uumas
2022-04-22 03:14:36 +03:00
parent 65bc78ea1b
commit 9694b8ca98
2 changed files with 6 additions and 0 deletions

View File

@@ -14,4 +14,8 @@ These variables are used by multiple roles and have the following default values
``` ```
reverse_proxy_type: caddy # Allowed values: caddy, traefik, none reverse_proxy_type: caddy # Allowed values: caddy, traefik, none
smtp_from: # not defined, no smtp login by default
smtp_pw: # not defined, see above
``` ```

View File

@@ -25,3 +25,5 @@ dependencies:
GITEA__mailer__HOST: "{{ smtp_server }}:587" GITEA__mailer__HOST: "{{ smtp_server }}:587"
GITEA__mailer__FROM: "{{ smtp_from }}" GITEA__mailer__FROM: "{{ smtp_from }}"
GITEA__mailer__MAILER_TYPE: smtp GITEA__mailer__MAILER_TYPE: smtp
GITERA__mailer__USER: "{{ smtp_user | default(omit) }}"
GITERA__mailer__PASSWD: "{{ smtp_pw | default(omit) }}"