File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,10 @@ def read_secret(secret_name):
127
127
'PASSWORD' : os .environ .get ('EMAIL_PASSWORD' , read_secret ('email_password' )),
128
128
'TIMEOUT' : int (os .environ .get ('EMAIL_TIMEOUT' , 10 )), # seconds
129
129
'FROM_EMAIL' : os .environ .get ('EMAIL_FROM' , '' ),
130
+ 'USE_SSL' : os .environ .get ('EMAIL_USE_SSL' , 'False' ).lower () == 'true' ,
131
+ 'USE_TLS' : os .environ .get ('EMAIL_USE_TLS' , 'False' ).lower () == 'true' ,
132
+ 'SSL_CERTFILE' : os .environ .get ('EMAIL_SSL_CERTFILE' , '' ),
133
+ 'SSL_KEYFILE' : os .environ .get ('EMAIL_SSL_KEYFILE' , '' ),
130
134
}
131
135
132
136
# Enforcement of unique IP space can be toggled on a per-VRF basis.
Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ EMAIL_USERNAME=netbox
9
9
EMAIL_PASSWORD =
10
10
EMAIL_TIMEOUT = 5
11
11
EMAIL_FROM = netbox@bar.com
12
+ # EMAIL_USE_SSL and EMAIL_USE_TLS are mutually exclusive, i.e. they can't both be `true`!
13
+ EMAIL_USE_SSL = false
14
+ EMAIL_USE_TLS = false
15
+ EMAIL_SSL_CERTFILE =
16
+ EMAIL_SSL_KEYFILE =
12
17
MEDIA_ROOT = /opt/netbox/netbox/media
13
18
NAPALM_USERNAME =
14
19
NAPALM_PASSWORD =
You can’t perform that action at this time.
0 commit comments