-
Notifications
You must be signed in to change notification settings - Fork 189
/
Copy pathenv.production
268 lines (187 loc) · 9.59 KB
/
env.production
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
################################################################################
# Environment Variables for Production
#
# Copy this file to `.env` for use by docker-compose.
################################################################################
COMPOSE_PROJECT_NAME=telescope_api
# Use buildx in docker-compose, see https://docs.docker.com/buildx/working-with-buildx
# With buildx, you get a more efficient build, better caching, and more.
COMPOSE_DOCKER_CLI_BUILD=1
DOCKER_BUILDKIT=1
# Compose files to use together on production. NOTE: we specify separator below
# so it will work on Windows and Unix, see
# https://docs.docker.com/compose/reference/envvars/#compose_file
COMPOSE_PATH_SEPARATOR=;
COMPOSE_FILE=docker/docker-compose.yml;docker/production.yml;docker/supabase/docker-compose.yml;docker/supabase/supabase-production.yml
# The host where the Telescope 1.0 front-end and back-end are run.
TELESCOPE_HOST=telescope.cdot.systems
# The host where all the microservices run (e.g., https://api.telescope.cdot.systems)
# NOTE: if you change this, change all other occurrences below too.
API_HOST=api.telescope.cdot.systems
# The host where portainer runs (e.g., https://portainer.telescope.cdot.systems)
PORTAINER_HOST=portainer.telescope.cdot.systems
# The host where supabase studio runs (e.g., https://supabase.telescope.cdot.systems)
SUPABASE_HOST=supabase.telescope.cdot.systems
# Front-end web URL (entry point to the next.js app). Make sure that the
# ALLOWED_APP_ORIGINS variable below includes this URL, so that the Auth
# service will allow redirects back to this origin.
WEB_URL=https://telescope.cdot.systems
# The API Version, used as a prefix on all routes: /v1
API_VERSION=v1
# Tag for registry
DOCKER_DEPLOY_TAG=production
################################################################################
# Status Service (only run in production/staging for monitoring)
################################################################################
# Status Service Port (default is 1111)
STATUS_PORT=1111
STATUS_URL=https://api.telescope.cdot.systems/v1/status
################################################################################
# SSO Auth Service
################################################################################
# Auth Service Port (default is 7777)
SSO_PORT=7777
# Auth Service URL
SSO_URL=https://api.telescope.cdot.systems/v1/auth
# The Single Sign On (SSO) login service URL
SSO_LOGIN_URL=https://login.microsoftonline.com/eb34f74a-58e7-4a8b-9e59-433e4c412757/saml2
# The callback URL endpoint to be used by the SSO login service (see the /auth route)
SSO_LOGIN_CALLBACK_URL=https://api.telescope.cdot.systems/v1/auth/login/callback
# The Single Logout (SLO) service URL
SLO_LOGOUT_URL=https://login.microsoftonline.com/eb34f74a-58e7-4a8b-9e59-433e4c412757/saml2
# The callback URL endpoint to be used by the SLO logout service (see the /auth route)
SLO_LOGOUT_CALLBACK_URL=https://api.telescope.cdot.systems/v1/auth/logout/callback
# The SSO Identity Provider's public key certificate. NOTE: this is the public
# key cert of the test login IdP docker container. Update for staging and prod.
SSO_IDP_PUBLIC_KEY_CERT=MIIC8DCCAdigAwIBAgIQHKFmKAdbqLFL3ZsmQmpfOTANBgkqhkiG9w0BAQsFADA0MTIwMAYDVQQDEylNaWNyb3NvZnQgQXp1cmUgRmVkZXJhdGVkIFNTTyBDZXJ0aWZpY2F0ZTAeFw0yMzAzMTQxOTExMDRaFw0yNjAzMTQxOTEwNTFaMDQxMjAwBgNVBAMTKU1pY3Jvc29mdCBBenVyZSBGZWRlcmF0ZWQgU1NPIENlcnRpZmljYXRlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAx0b+Uzfw8eKLcu4WgtgGW26vNdVo4o9vPpBH6yJM6hnVBJtb28Uvr4/V9+u0F9Vr5zlI4cUPv2c7Kk53sTkR6YDPTA7r5ILSyEHxh4H6S1UZCNRL2EoqFDtdFO/FHboGTsFIAVHexyd4oYZwJVSpXXObpnwImzron7qjGnwqTT2c67wr/slkbLhGDL+H831V8d6u5dxTmf2UpUSRH+Z9h7hSZ5wOEdBfBCr9BL4Xtarn2xm0EsTEKBUvn+O+LDOL1SaW09BNy1PCF+ubO1W4+YePyroTQfjaJyT5Vh8jH0w4ONfcryhId1B17zFnwAY1yhuQlicSuL1aUhSPRPz5/QIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQAkX5QeAgt2CiBjHUt3JZKBMEggICWq+o8GUtaKuTE9zPFIxOauoVego+YCxqVGhHNEn37MWe2Rv2bv6W6+8z/MSPJhtA14cQEE6OCVubkGthrNoDTEDqsX0UTNRl+jPQnQNrz1kwNKTv871IzaI6I7fowC3TS3OEGFkRxds9nR2WWg/FlNbL2GI56gpmEYni6WQVFXdyA3ZfJrh0pF9Bej8U1ObSstUo1S7N7aNIA/j1Iqsq9KoEg5XSg+/qGooF9IGu/rTu8aQ5Y5iEa6raJnqH1iHkgQGHvwTpZZs7VMg/UyKkqfEBNCbj3LpSf2P3/wLxvggGdRT0+cDY4ejt80
# Our apps's Entity ID, which is also the URL to our metadata.
SAML_ENTITY_ID=https://api.telescope.cdot.systems/v1/auth/sp
# ADMINISTRATORS is a list (space delimited) of users who have administrator
# rights. Use the user's nameID (user2@example.com) or hashed version of
# nameID (2b3b2b9ce8). Either will work.
ADMINISTRATORS=user1@example.com
# Origins of web apps that we'll allow for redirects. See src/api/sso/test
ALLOWED_APP_ORIGINS=https://telescope.cdot.systems
# The URI of the auth server
JWT_ISSUER=https://api.telescope.cdot.systems/v1/auth
# The microservices origin
JWT_AUDIENCE=https://api.telescope.cdot.systems
# How long should a JWT work before it expires
JWT_EXPIRES_IN=1h
# Slack Bolt config
SLACK_BOT_TOKEN=
SLACK_BOT_SIGNING_SECRET=
SLACK_BOT_CHANNEL_ID=
################################################################################
# Image Service
################################################################################
# Image Service Port (default is 4444)
IMAGE_PORT=4444
# Image Service URL
IMAGE_URL=https://api.telescope.cdot.systems/v1/image
################################################################################
# Search Service
################################################################################
# Search Service Port (default is 4445)
SEARCH_PORT=4445
# Search Service URL
SEARCH_URL=https://api.telescope.cdot.systems/v1/search
################################################################################
# Posts Service
################################################################################
# Posts Service Port (default is 5555)
POSTS_PORT=5555
# Posts Service URL
POSTS_URL=https://api.telescope.cdot.systems/v1/posts
# Redis Mock info
MOCK_REDIS=
################################################################################
# Feed Discovery Service
################################################################################
# Feed Discovery Service Port (default is 9999)
FEED_DISCOVERY_PORT=9999
# Feed Discovery Service URL
FEED_DISCOVERY_URL=https://api.telescope.cdot.systems/v1/feed-discovery
################################################################################
# Parser Service
################################################################################
# Parser Service Port (default is 10000)
PARSER_PORT=10000
# Parser Service URL
PARSER_URL=https://api.telescope.cdot.systems/v1/parser
################################################################################
# Dependency Discovery Service
################################################################################
# Dependency Discovery Service Port (default is 10500)
DEPENDENCY_DISCOVERY_PORT=10500
# Dependency Discovery Service URL
DEPENDENCY_DISCOVERY_URL=https://api.telescope.cdot.systems/v1/dependency-discovery
################################################################################
# RSS Bridge Service
################################################################################
# Dependency Discovery Service Port (default is 10500)
RSS_BRIDGE_URL=https://api.telescope.cdot.systems/v1/rss-bridge
################################################################################
# Telescope 1.0 Legacy Environment
################################################################################
# NODE_ENV should be one of "development" or "production"
NODE_ENV=production
# LOG_LEVEL is used to set the level of debugging for the logs.
# info, error and debug are commonly used levels. See http://getpino.io/#/docs/api?id=level for more info on levels.
# to completely disable all logs, use silent.
LOG_LEVEL=info
# LOG_FILE is used to set a destination path to write logs. Works in production mode only.
LOG_FILE=
# FEED_URL url used to access feed list
FEED_URL=https://wiki.cdot.senecacollege.ca/wiki/Planet_CDOT_Feed_List
# Milliseconds to wait after attempting to fetch the feed list when the server is not available
FEED_URL_INTERVAL_MS=30000
# Max number of results per query
ELASTIC_MAX_RESULTS_PER_PAGE=5
# Delay to check connectivity with Elasticsearch in ms
ELASTIC_DELAY_MS=10000
# Period of time (seconds) that an unprocessed feed must wait before its
# next processing attempt (due to previous attempt responding with HTTP 429)
FEED_PROCESSING_DELAY_SEC=3600
# Feed job queue attempts
FEED_QUEUE_ATTEMPTS=12
# Feed job queue delay (ms) = 10 minutes
FEED_QUEUE_DELAY_MS=600000
# Number of concurrent worker processors to run. Use * if you want to run
# one per CPU. Use a number if you want to set it manually, up to a max
# of the CPU count. If not set, we'll assume 1.
FEED_QUEUE_PARALLEL_WORKERS=1
# Max number of posts per page
MAX_POSTS_PER_PAGE=5
################################################################################
# Supabase Services
################################################################################
SUPABASE_URL=https://api.telescope.cdot.systems/v1/supabase
# Auth
## General
### Telescope web URL, must match with WEB_URL
SITE_URL=https://telescope.cdot.systems/
ADDITIONAL_REDIRECT_URLS=
JWT_EXPIRY=3600
DISABLE_SIGNUP=true
## Email auth
ENABLE_EMAIL_SIGNUP=false
ENABLE_EMAIL_AUTOCONFIRM=false
SMTP_ADMIN_EMAIL=admin@example.com
SMTP_HOST=mail
SMTP_PORT=2500
SMTP_USER=fake_mail_user
SMTP_PASS=fake_mail_password
SMTP_SENDER_NAME=fake_sender
## Phone auth
ENABLE_PHONE_SIGNUP=false
ENABLE_PHONE_AUTOCONFIRM=false
# Ports
## Studio port
STUDIO_PORT=8910
## API endpoint ports
KONG_HTTP_PORT=8911
KONG_HTTPS_PORT=8912
## DB port
POSTGRES_PORT=8913
## DB connection string