Commit 44f8c0d0 authored by Noe Nieto's avatar Noe Nieto 💬

reviewed email connection params (Purism/LibremOne/task#221)

parent 14d15406
Pipeline #5732 failed with stage
......@@ -41,8 +41,17 @@ 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 configuration example to 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
# Email configuration sample for production/staging
EMAIL_HOST = smtp.example.com
EMAIL_HOST_USER = jhon.doe@example.com
EMAIL_PORT = 465
EMAIL_USE_TLS = False
EMAIL_USE_SSL = True
DEFAULT_FROM_EMAIL = "Do not replay <noreply@example.com>"
......@@ -14,4 +14,5 @@ TUNNEL_SECRET = secret
# print(Fernet.generate_key().decode())'
# You should get something like this:
# jBv_8z3mq0jurqeB5MFYav1n6MTyWd4bOXJ8tzy9ywU=
TUNNEL_KEY = generate_your_own_key!
\ No newline at end of file
TUNNEL_KEY = generate_your_own_key!
EMAIL_HOST_PASSWORD = v3r153cR37
......@@ -259,4 +259,6 @@ 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)
EMAIL_USE_TLS = config('EMAIL_USE_TLS', False, cast=bool)
EMAIL_USE_SSL = config('EMAIL_USE_SSL', False, cast=bool)
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