File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 22Default configuration settings and environment variable based configuration logic
33 See the readme for more information
44"""
5-
5+ from distutils . util import strtobool
66from os import environ
77
88# Flask config
3232LDAP_BIND_PASS = environ .get ("PACKET_LDAP_BIND_PASS" , None )
3333
3434# Mail Config
35- MAIL_PROD = environ .get ("PACKET_MAIL_PROD" , False )
35+ MAIL_PROD = strtobool ( environ .get ("PACKET_MAIL_PROD" , ' False' ) )
3636MAIL_SERVER = environ .get ("PACKET_MAIL_SERVER" , "thoth.csh.rit.edu" )
3737MAIL_USERNAME = environ .
get (
"PACKET_MAIL_USERNAME" ,
"[email protected] " )
3838MAIL_PASSWORD = environ .get ("PACKET_MAIL_PASSWORD" , None )
39- MAIL_USE_TLS = environ .get ("PACKET_MAIL_TLS" , True )
39+ MAIL_USE_TLS = strtobool ( environ .get ("PACKET_MAIL_TLS" , ' True' ) )
4040
4141# Slack URL for pushing to #general
4242SLACK_WEBHOOK_URL = environ .get ("PACKET_SLACK_URL" , None )
You can’t perform that action at this time.
0 commit comments