-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.env.public
More file actions
40 lines (33 loc) · 2.12 KB
/
Copy path.env.public
File metadata and controls
40 lines (33 loc) · 2.12 KB
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
ROOT_DOMAIN=automoderator.app
DATABASE_URL_DEV=postgres://chatsift:admin@127.0.0.1:${LOCAL_DATABASE_PORT}/chatsift
DATABASE_URL_PROD=postgres://chatsift:admin@postgres:5432/chatsift
REDIS_URL_DEV=redis://127.0.0.1:6379
REDIS_URL_PROD=redis://redis:6379
API_PORT=7004
OAUTH_DISCORD_CLIENT_ID=1005791929075769344
# services/discord-proxy. The URL must end in /api -- `@discordjs/rest` appends `/v{version}{route}` to it,
# so it's the same shape as the `https://discord.com/api` it replaces.
# `_DEV` is intentionally blank: `yarn dev:*` talks straight to Discord unless you're also running
# `yarn dev:discord-proxy`, in which case set it to http://localhost:${DISCORD_PROXY_PORT}/api.
# Blanking `_PROD` is the production kill switch -- every service goes back to calling Discord directly.
# The port is spelled out rather than ${DISCORD_PROXY_PORT}: services read this through compose's per-service
# `env_file:`, which passes values through literally and does no interpolation. Keep the two in step by hand.
DISCORD_PROXY_PORT=7005
DISCORD_PROXY_URL_DEV=
DISCORD_PROXY_URL_PROD=http://discord-proxy:7005/api
CORS="http:\/\/localhost:3000|https:\/\/canary\.automoderator\.app"
API_URL_DEV=http://localhost:7004
API_URL_PROD=https://api-canary.automoderator.app
FRONTEND_URL_DEV=http://localhost:3000
FRONTEND_URL_PROD=https://canary.automoderator.app
# #270 - shared threshold (ms) for both Postgres's own log_min_duration_statement (docker-compose.yml)
# and the app-level createDb() slow-query log (packages/private/db).
POSTGRES_SLOW_QUERY_LOG_MS=200
# Horizontal scaling. How many gateway shards one replica of each bot should aim to run -- the only number
# a human sets. Discord's /gateway/bot recommendation decides the shard count, `./compose up` derives the
# replica count from these two, and each replica claims its own slice against redis. Blank (the default)
# means one replica running every shard, which is where all three bots are today. Raising a bot above one
# shard is what makes these meaningful; see docs/roadmap/12-horizontal-scaling.md before setting one.
AMA_SHARDS_PER_REPLICA=
MODMAIL_SHARDS_PER_REPLICA=
SOCIAL_SHARDS_PER_REPLICA=