Skip to content

Commit 1b7c2cb

Browse files
committed
Support MLAPI_SECRET_KEY and MLAPI_ALPR_KEY env vars
1 parent 3b29e0c commit 1b7c2cb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/common_params.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
import modules.log as g_log
23

34

@@ -71,7 +72,7 @@
7172
},
7273
'mlapi_secret_key':{
7374
'section': 'general',
74-
'default': None,
75+
'default': os.getenv('MLAPI_SECRET_KEY'),
7576
'type': 'string',
7677
},
7778

@@ -195,7 +196,7 @@
195196
},
196197
'alpr_key': {
197198
'section': 'alpr',
198-
'default': '',
199+
'default': os.getenv('MLAPI_ALPR_KEY'),
199200
'type': 'string',
200201
},
201202
'alpr_use_after_detection_only': {

0 commit comments

Comments
 (0)