Skip to content

Commit

Permalink
Update superset_config.py
Browse files Browse the repository at this point in the history
Get all from env variables
  • Loading branch information
mittalsuraj18 authored Jan 24, 2024
1 parent 7ccedc3 commit f4d695c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docker/pythonpath_dev/superset_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ class CeleryConfig(object):
SLACK_API_TOKEN = get_env_variable("SLACK_API_TOKEN")

# Email configuration
SMTP_HOST = "smtp.gmail.com" # change to your host
SMTP_PORT = 587 # your port, e.g. 587
SMTP_STARTTLS = True
SMTP_SSL_SERVER_AUTH = True # If your using an SMTP server with a valid certificate
SMTP_SSL = False
SMTP_HOST = get_env_variable("SMTP_HOST") # change to your host
SMTP_PORT = int(get_env_variable("SMTP_PORT")) # your port, e.g. 587
SMTP_STARTTLS = bool(get_env_variable("SMTP_STARTTLS"))
SMTP_SSL_SERVER_AUTH = bool(get_env_variable("SMTP_SSL_SERVER_AUTH")) # If your using an SMTP server with a valid certificate
SMTP_SSL = bool(get_env_variable("SMTP_SSL"))
SMTP_USER = get_env_variable("SMTP_USER") # use the empty string "" if using an unauthenticated SMTP server
SMTP_PASSWORD = get_env_variable("SMTP_PASSWORD") # use the empty string "" if using an unauthenticated SMTP server
SMTP_MAIL_FROM = get_env_variable("SMTP_MAIL_FROM")
Expand Down

0 comments on commit f4d695c

Please sign in to comment.