-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathgke-builtwithdark
133 lines (104 loc) · 4.16 KB
/
gke-builtwithdark
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# Many values are set in production via kubernetes. These are commented out
# here to ensure that the service will not start if they are not set in
# production (we previously had situation where the service would start using a
# dummy value as key)
# Root directories
DARK_CONFIG_RUNDIR=/home/dark/gcp-rundir
DARK_CONFIG_ROOT_DIR=/home/dark
# Important dirs
DARK_CONFIG_TEMPLATES_DIR=/home/dark/templates
DARK_CONFIG_WEBROOT_DIR=/home/dark/webroot/static
DARK_CONFIG_MIGRATIONS_DIR=/home/dark/migrations
# Ports
## ApiServer
DARK_CONFIG_APISERVER_NGINX_PORT=9000
DARK_CONFIG_APISERVER_BACKEND_PORT=9001
DARK_CONFIG_APISERVER_KUBERNETES_PORT=9002
## BwdServer
DARK_CONFIG_BWDSERVER_BACKEND_PORT=11001
DARK_CONFIG_BWDSERVER_KUBERNETES_PORT=11002
## CronChecker
DARK_CONFIG_CRONCHECKER_KUBERNETES_PORT=12002
## QueueWorker
DARK_CONFIG_QUEUEWORKER_KUBERNETES_PORT=13002
DARK_CONFIG_ALLOW_TEST_ROUTES=n
DARK_CONFIG_TRIGGER_QUEUE_WORKERS=y
DARK_CONFIG_TRIGGER_CRONS=y
DARK_CONFIG_PAUSE_BETWEEN_CRONS=0
DARK_CONFIG_CREATE_ACCOUNTS=n
DARK_CONFIG_USE_HTTPS=y
DARK_CONFIG_APISERVER_SERVE_STATIC_CONTENT=n
DARK_CONFIG_APISERVER_HOST=darklang.com
DARK_CONFIG_APISERVER_STATIC_HOST=static.darklang.com
DARK_CONFIG_COOKIE_DOMAIN=.darklang.com
DARK_CONFIG_BWDSERVER_HOST=builtwithdark.com
# Serialization
DARK_CONFIG_SERIALIZATION_GENERATE_TEST_DATA=n
DARK_CONFIG_SERIALIZATION_CHECK_TYPES=n
DARK_CONFIG_SERIALIZATION_HEALTH_CHECK_HOSTS=dark-editor,ops-adduser,ops-corpsite,ops-login,sample-crud
# Logging
DARK_CONFIG_ENV_DISPLAY_NAME=production
# Rollbar
DARK_CONFIG_ROLLBAR_ENABLED=y
DARK_CONFIG_ROLLBAR_ENVIRONMENT=production
DARK_CONFIG_ROLLBAR_POST_CLIENT_ITEM=c7af77e991aa4edd80cf6a576c1e42f5
#DARK_CONFIG_ROLLBAR_POST_SERVER_ITEM=k8s
# Honeycomb
DARK_CONFIG_TELEMETRY_EXPORTER=honeycomb
#DARK_CONFIG_HONEYCOMB_API_KEY=k8s
DARK_CONFIG_HONEYCOMB_DATASET_NAME=kubernetes-bwd-ocaml
DARK_CONFIG_HONEYCOMB_API_ENDPOINT=https://api.honeycomb.io:443
# Launchdarkly - https://app.launchdarkly.com/settings/projects/default/environments
#DARK_CONFIG_LAUNCHDARKLY_SDK_API_KEY=k8s
DARK_CONFIG_LAUNCHDARKLY_CLIENT_SIDE_ID=627162f9b2bab01530ddc355
# Feature flag defaults
DARK_CONFIG_TRACE_SAMPLING_RULE_DEFAULT=sample-none
# DB
DARK_CONFIG_DB_DBNAME=postgres
#DARK_CONFIG_DB_HOST=k8s
#DARK_CONFIG_DB_USER=k8s
#DARK_CONFIG_DB_PASSWORD=k8s
DARK_CONFIG_DB_POOL_SIZE=20
# Queue / pubsub
DARK_CONFIG_QUEUE_PUBSUB_PROJECT_ID=balmy-ground-195100
DARK_CONFIG_QUEUE_PUBSUB_TOPIC_NAME=topic-queueworker-1
DARK_CONFIG_QUEUE_PUBSUB_SUBSCRIPTION_NAME=subscription-queueworker-1
DARK_CONFIG_QUEUE_PUBSUB_CREATE_TOPIC=n
#DARK_CONFIG_QUEUE_PUBSUB_CREDENTIALS=k8s
# Traces / cloud storage
DARK_CONFIG_TRACE_STORAGE_BUCKET_NAME=dark-traces
DARK_CONFIG_TRACE_STORAGE_CREATE_BUCKET=n
#DARK_CONFIG_TRACE_STORAGE_CREDENTIALS=k8s
DARK_CONFIG_TRACE_STORAGE_BASE_URI=not-used
# Httpclient
DARK_CONFIG_HTTPCLIENT_TUNNEL_PROXY_URL=socks5://tunnel2-service.darklang:1080
# Publicly accessible domain
DARK_CONFIG_PUBLIC_DOMAIN=localhost
# Pusher
# CLEANUP
#
# There are two pusher production accounts/credentials. The old one is
# "pusher-account-credentials". This is used by the old servers because I didn't want
# to disturb them, so it will be left in until we remove the old servers or decide to
# switch to new credentials. To support these old users, I have left the APP_ID and
# CLUSTER at their old values, which they need.
# The second is "credentials-pusher" (following the new format of putting
# "credentials" first). This should be used by all new stuff. This is in a different
# data center (cluster) and is a different app because each app is unique to a data
# center. The deployments pull all 4 of these env vars from secrets (which override
# the defaults listed here).
DARK_CONFIG_PUSHER_APP_ID=710063
#DARK_CONFIG_PUSHER_KEY=k8s
#DARK_CONFIG_PUSHER_SECRET=k8s
DARK_CONFIG_PUSHER_CLUSTER=us2
# Heap analytics
DARK_CONFIG_HEAPIO_ID=477722926
# Static assets
DARK_CONFIG_STATIC_ASSETS_SALT_SUFFIX=production
# Other
DARK_CONFIG_BROWSER_RELOAD_ENABLED=n
DARK_CONFIG_HASH_STATIC_FILENAMES=y
DARK_CONFIG_USE_LOGIN_DARKLANG_COM_FOR_LOGIN=y
# Getting started canvas
DARK_CONFIG_GETTING_STARTED_CANVAS_NAME=crud
DARK_CONFIG_GETTING_STARTED_CANVAS_SOURCE=sample-crud