-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
54 lines (46 loc) · 1.84 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
import os
# -------- ENV --------
# Debug will authorize kube api with local gcloud auth when True
DEBUG = os.getenv("DEBUG", False) in ["true", "True"]
DISABLED = os.getenv("DISABLED", False) in ["true", "True"]
# Determines the slack notification info
APP_ENV = os.getenv("APP_ENV", "development")
# -------- Project, Pod, Cluster --------
PROJECT = os.getenv("PROJECT")
HOST_NAME = os.getenv("HOSTNAME", "localhost")
NAMESPACE = os.getenv("NAMESPACE", "default")
# -------- Slack --------
SLACK_TOKEN = os.getenv("SLACK_TOKEN")
SLACK_CHANNEL = os.getenv("SLACK_CHANNEL", "dev-null")
# -------- Trello --------
TRELLO_KEY = os.getenv("TRELLO_KEY")
TRELLO_TOKEN = os.getenv("TRELLO_TOKEN")
TRELLO_LIST_ID = os.getenv("TRELLO_LIST_ID")
TRELLO_SEND_NOTIFICATION = os.getenv("TRELLO_SEND_NOTIFICATION", False) in [
"true",
"True",
]
# -------- Mailgun --------
MAILGUN_DOMAIN = os.getenv("MAILGUN_DOMAIN")
MAILGUN_KEY = os.getenv("MAILGUN_KEY")
MAILGUN_TO = os.getenv("MAILGUN_TO")
# -------- Database backup --------
DATABASE_INSTANCE_NAME = os.getenv("DATABASE_INSTANCE_NAME")
DATABASE_NAME = os.getenv("DATABASE_NAME")
DATABASE_BACKUP_BUCKET = f"{os.getenv('DATABASE_BACKUP_BUCKET')}/{DATABASE_NAME}"
# -------- Migrate job --------
APP_MIGRATOR_SOURCE = os.getenv("APP_MIGRATOR_SOURCE")
# comma separated list
APP_MIGRATOR_COMMAND = os.getenv("APP_MIGRATOR_COMMAND", "npm").split(",")
# comma separated list
APP_MIGRATOR_ARGS = os.getenv(
"APP_MIGRATOR_ARGS", "run,--prefix,/app,migration:run"
).split(",")
# -------- Deployment Tiers --------
# comma separated listed in scale down order
TIERS = os.getenv("TIERS", "frontend,scheduler,worker,gateway,apiserver").split(",")
# frontend - public facing frontend
# scheduler - service scheduler
# worker - service queue workers
# gateway - public facing api gateway
# apiserver - service apiserver / internal gateway