chore(forgejo): Fix mailer tls protocol configuration

Update configuration for mailer to use new 'PROTOCOL' configuration
option instead of old 'IS_TLS_ENABLED'.
This commit is contained in:
Marty Oehme 2024-09-27 10:05:33 +02:00
parent 409f50a5ef
commit 46b6b9a8a4
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
2 changed files with 4 additions and 2 deletions

View file

@ -36,7 +36,9 @@ services:
- FORGEJO__mailer__TYPE=smtp
- FORGEJO__mailer__SMTP_ADDR={{ forgejo_smtp_addr }}
- FORGEJO__mailer__SMTP_PORT={{ forgejo_smtp_port }}
- FORGEJO__mailer__IS_TLS_ENABLED={{ (forgejo_smtp_force_tls is not undefined and not None) | ternary(forgejo_smtp_force_tls,'false') }}
{% if forgejo_smtp_protocol is not undefined and not none %}
- FORGEJO__mailer__PROTOCOL={{ forgejo_smtp_protocol }}
{% endif %}
- FORGEJO__mailer__USER={{ forgejo_smtp_username }}
- FORGEJO__mailer__PASSWD={{ forgejo_smtp_password }}
{% endif %}