Commit 7277253f authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team

models/db.py, modules/defs.py.sample: setup email server

parent 41671714
......@@ -58,9 +58,9 @@ auth.define_tables(username=False, signature=False)
## configure email
mail = auth.settings.mailer
mail.settings.server = 'logging' or 'smtp.gmail.com:587'
mail.settings.sender = 'you@gmail.com'
mail.settings.login = 'username:password'
mail.settings.server = defs.SMTP_SERVER
mail.settings.sender = defs.FROM_EMAIL
mail.settings.login = None
## configure auth policy
auth.settings.registration_requires_verification = False
......
......@@ -3,6 +3,12 @@
### This file must be named 'modules/defs.py' to be taken into account
###
### Email notifications for server errors
SMTP_SERVER = 'localhost'
# SMTP_SERVER = 'logging' # no mail
FROM_EMAIL = 'rbx@vidjil.org'
ADMIN_EMAILS = ['notifications@vidjil.org']
### address for the sql database
###
DB_ADDRESS = 'sqlite://storage.sqlite'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment