forked from ai-eks/OpenClubhouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
35 lines (27 loc) · 893 Bytes
/
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
import os
# Cache Config
CACHE_INTERVAL = 10
# Flask Config
class Config(object):
DEBUG = False
TESTING = False
MONGODB_SETTINGS = {
'host': 'mongodb://localhost:27017/clubhouse'
}
SECRET_KEY = "DEV"
# Integer user_id of your Clubhouse account , you can get it from token json file generated by OpenClubhouse-worker
OWNER_USER_ID = None
class ProductionConfig(Config):
MONGODB_SETTINGS = {
'db': os.getenv("MONGO_DB", "clubhouse"),
'host': os.getenv("MONGO_HOST", "localhost"),
'port': int(os.getenv("MONGO_PORT", 27017)),
'username': os.getenv("MONGO_USERNAME", ""),
'password': os.getenv("MONGO_PASSWORD", ""),
}
# Generate from: python -c 'import os; print(os.urandom(16))'
SECRET_KEY = None
class DevelopmentConfig(Config):
DEBUG = True
class TestingConfig(Config):
TESTING = True