Commit 14d15406 authored by Noe Nieto's avatar Noe Nieto 💬

Email configuration for middleware (Purism/LibremOne/task#221)

parent 65d06ce4
Pipeline #5705 failed with stage
......@@ -41,4 +41,8 @@ OVPN_FILEPATH="/path/to/{IDENTITY}/{IDENTITY}.ovpn"
TUNNEL_HOST=https://example.com
PASSWORD_RESET_TOKEN_EXPIRES=1800
WOO_CART_GROUP = 1,2,4
# Use Mailtrap for development (https://source.puri.sm/snippets/56)
EMAIL_HOST = '127.0.0.1'
EMAIL_HOST_USER = ''
EMAIL_PORT = 1025
EMAIL_USE_TLS = False
......@@ -254,11 +254,9 @@ REST_FRAMEWORK = {
#
PASSWORD_RESET_TOKEN_EXPIRES = secret_config('PASSWORD_RESET_TOKEN_EXPIRES', 1800)
if DEBUG_LOCAL_MAIL:
# Use Mailtrap for development (https://source.puri.sm/snippets/56)
EMAIL_HOST = '127.0.0.1'
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_PORT = 1025
EMAIL_USE_TLS = False
# Email server configuration
EMAIL_HOST = config('EMAIL_HOST')
EMAIL_HOST_USER = config('EMAIL_HOST_USER')
EMAIL_HOST_PASSWORD = secret_config('EMAIL_HOST_PASSWORD')
EMAIL_PORT = config('EMAIL_PORT', 25)
EMAIL_USE_TLS = config('EMAIL_USE_TLS', False)
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