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:
parent
409f50a5ef
commit
46b6b9a8a4
2 changed files with 4 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ forgejo_app_admin_email: myadmin@mydomain.mytld
|
|||
# forgejo_smtp_port: 465
|
||||
# forgejo_smtp_username: my@username.com
|
||||
# forgejo_smtp_password: <password>
|
||||
# forgejo_smtp_force_tls: false # forces tls if it is on a non-traditional tls port. Overwrites starttls so should generally be off
|
||||
# forgejo_smtp_protocol: smtps # can be one of starttls | smtps
|
||||
|
||||
forgejo_use_lfs: false
|
||||
forgejo_lfs_max_filesize: 0
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue