Skip to content
Snippets Groups Projects
Commit 8eb00f53 authored by Varac's avatar Varac
Browse files

Merge branch 'only-need-nextcloud-settings-if-enabled' into 'master'

make sure nextcloud email settings are not necessary if smtp is not enabled

See merge request openappstack/openappstack!321
parents 92adbe39 c7c5ee22
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@ nextcloud:
password: "{{ nextcloud_password }}"
mail:
enabled: {{ outgoing_mail.enabled | default("false", true) }}
{% if outgoing_mail.enabled %}
{% set outgoing_mail_domain = outgoing_mail.fromAddress.split('@')[-1] %}
{% set outgoing_mail_from = outgoing_mail.fromAddress.split('@')[0] %}
fromAddress: "{{ outgoing_mail_from }}"
......@@ -20,6 +21,7 @@ nextcloud:
name: "{{ outgoing_mail.smtp.user }}"
password: "{{ outgoing_mail.smtp.password }}"
authtype: "{{ outgoing_mail.smtp.authtype }}"
{% endif %}
cronjob:
# Set curl to accept insecure connections when acme staging is used
curlInsecure: "{{ acme_staging }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment