-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
17 lines (15 loc) · 596 Bytes
/
config.py
File metadata and controls
17 lines (15 loc) · 596 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os
class Config(object):
RATELIMIT_HEADERS_ENABLED = True
RATELIMIT_STORAGE_URL = os.environ.get("REDIS_URL")
SECRET_KEY = os.environ.get("SECRET_KEY")
SESSION_COOKIE_HTTPONLY = True
SESSION_COOKIE_SECURE = True
SQLALCHEMY_DATABASE_URI = (
os.environ.get("DATABASE_URL").replace("postgres://", "postgresql://")
if os.environ.get("DATABASE_URL")
else "postgresql://mash:mash@localhost:5432/mash"
)
SQLALCHEMY_ENGINE_OPTIONS = {"pool_size": 20}
SQLALCHEMY_TRACK_MODIFICATIONS = False
TIMEOUT = int(os.environ.get("TIMEOUT"))