-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.py
100 lines (68 loc) · 1.94 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
'''
Copyright (C) 2022 Abhishek Prajapati, Frostyaxe. All rights reserved.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@summary: Handles the generic blaze configurations.
Created on 11-April-2022
@author: Abhishek Prajapati
***** You don't have any permission to modify any code in this framework without having prior approval from the author. *****
'''
'''
Database Details ( No need to modify )
'''
from os import getenv # Using getenv to retrieve the secrets securely from the environment variables
DB = {
"DATABASE_NAME": "blaze"
}
'''
Jenkins Details ( Need to Modify )
'''
JENKINS = {
"SERVER_URL": "http://localhost:8080",
"USERNAME": "frostyaxe",
"TOKEN": getenv("JENKINS_TOKEN")
}
'''
Blaze Details ( No need to modify )
'''
BLAZE = {
"AUTH":{
"SECRET_KEY" : getenv("BLAZE_SECRET"),
"ALGORITHM": "HS256"
}
}
'''
Email Configuration Details ( Need to Modify )
'''
EMAIL = {
"SENDER": "[email protected]",
"SMTP": { "HOST": "smtp.gmail.com", "PORT": 465 },
"PROTOCOL" : "SSL",
"AUTH_REQUIRED": True,
"USERNAME": "[email protected]",
"PASSWORD": getenv("EMAIL_SECRET")
}
logger_dict_config = {
'version': 1,
'formatters': {
'standard': {
'format': '%(asctime)s [%(levelname)s] %(name)s: %(message)s'
}
},
'handlers': {
'file.handler': {
'class': 'logging.handlers.RotatingFileHandler',
'filename': 'server_werkzeug.log',
'maxBytes': 10000000,
'backupCount': 5,
'level': 'DEBUG',
'formatter': 'standard'
},
},
'loggers': {
'blaze': {
'level': 'DEBUG',
'handlers': ['file.handler'],
},
},
}