Skip to content
Snippets Groups Projects
Verified Commit 59234d6d authored by ynerant's avatar ynerant
Browse files

[django_cas] Configure mail server


Signed-off-by: ynerant's avatarYohann D'ANELLO <ynerant@crans.org>
parent 16b9b390
No related branches found
No related tags found
1 merge request!272Stabilize Ansible
......@@ -11,6 +11,10 @@ glob_django_cas:
host: tealc.adm.crans.org
password: "{{ vault.cas_database_password }}"
secret_key: "{{ vault.cas_secret_key }}"
mail:
address: 'root@crans.org'
host: "{{ query('ldap', 'ip', 'redisdead', 'adm') | ipv4 | first }}"
port: 25
loc_nginx:
service_name: "cas"
......
......@@ -18,3 +18,8 @@ DATABASES = {
'PASSWORD': '{{ django_cas.db.password }}',
}
}
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
SERVER_EMAIL = '{{ django_cas.mail.address }}'
EMAIL_HOST = '{{ django_cas.mail.host }}'
EMAIL_PORT = {{ django_cas.mail.port }}
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