Add config 'toLoad' list
This commit is contained in:
parent
fdb6f73f26
commit
bcac814800
38
src/config.py
Normal file
38
src/config.py
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
# Load configuration from file/env variables
|
||||||
|
|
||||||
|
def load():
|
||||||
|
toLoad = [
|
||||||
|
{
|
||||||
|
"envname": "DG_IMAP_HOST",
|
||||||
|
"filepath": "/owlboard/dgp/imap/host"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"envname": "DG_IMAP_PORT",
|
||||||
|
"filepath": "/owlboard/dgp/imap/port",
|
||||||
|
"default": "unk"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"envname": "DG_IMAP_USER",
|
||||||
|
"filepath": "/owlboard/dgp/imap/user",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"envname": "DG_IMAP_PASS",
|
||||||
|
"filepath": "/owlboard/dgp/imap/pass",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"envname": "DG_OWL_UUID",
|
||||||
|
"filepath": "/owlboard/dgp/api/uuid",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"envname": "DG_GITEA_KEY",
|
||||||
|
"filepath": "/owlboard/dgp/gitea/key"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"envname": "DG_GITEA_HOST",
|
||||||
|
"filepath": "/owlboard/dgp/gitea/host"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"envname": "DG_GITEA_SSHPORT",
|
||||||
|
"filepath": "/owlboard/dgp/gitea/sshport"
|
||||||
|
}
|
||||||
|
]
|
Reference in New Issue
Block a user