-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
25 lines (22 loc) · 782 Bytes
/
config.py
File metadata and controls
25 lines (22 loc) · 782 Bytes
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
db = {
'user' : 'root',
'password' : 'root',
'host' : 'localhost',
'port' : 3306,
'database' : 'miniter'
}
DB_URL = f"mysql+mysqlconnector://{db['user']}:{db['password']}@{db['host']}:{db['port']}/{db['database']}?charset=utf8"
JWT_SECRET_KEY = 'SOME_SUPER_SECRET_KEY'
JWT_EXP_DELTA_SECONDS = 7 * 24 * 60 * 60
test_db = {
'user' : 'root',
'password' : 'root',
'host' : 'localhost',
'port' : 3306,
'database' : 'test_db'
}
test_config = {
'DB_URL' : f"mysql+mysqlconnector://{test_db['user']}:{test_db['password']}@{test_db['host']}:{test_db['port']}/{test_db['database']}?charset=utf8",
'JWT_SECRET_KEY' : 'SOME_SUPER_SECRET_KEY',
'JWT_EXP_DELTA_SECONDS' : 7 * 24 * 60 * 60
}