-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
44 lines (38 loc) · 1.96 KB
/
Copy path.env.example
File metadata and controls
44 lines (38 loc) · 1.96 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
41
42
43
44
# --- Server -------------------------------------------------------------
PORT=3300
NODE_ENV=development
# Optional. Defaults to "debug" in development, "info" otherwise.
LOG_LEVEL=info
# --- Bot files ----------------------------------------------------------
# A FILE, not a directory - commandService.ts reads this path directly.
BOT_DATA_PATH=/path/to/bot/data/help.json
# A DIRECTORY, and it must be the bot's real schemas/ dir inside its checkout:
# schemas/index.ts re-exports from ../data/constants/ and resolves discord.js
# and zod from the bot's own node_modules. A copy of the schema files alone
# will not load, and the site will not start.
BOT_SCHEMAS_PATH=/path/to/bot/schemas
# --- Discord ------------------------------------------------------------
DISCORD_CLIENT_ID=your_client_id
DISCORD_CLIENT_SECRET=your_client_secret
DISCORD_REDIRECT_URI=http://localhost:3300/callback
DISCORD_BOT_TOKEN=your_bot_token
# Owner-only routes (requireAdmin) are gated on this Discord user ID.
ADMIN_DISCORD_ID=your_discord_user_id
# --- Database -----------------------------------------------------------
# Under Docker this must be host.docker.internal, not localhost.
MONGODB_URI=mongodb://localhost:27017
MONGODB_BOT_DB=your_bot_db_name
MONGODB_SWAPI_DB=your_swapi_db_name
# --- Session ------------------------------------------------------------
# Minimum 16 characters; validated at startup.
SESSION_SECRET=a_random_secret_at_least_16_chars
# --- Plugins (optional) -------------------------------------------------
# Comma-separated absolute paths. Overridden by docker-compose.yml.
EXTRAS_PATHS=/absolute/path/to/plugin
# MovieChecker plugin. Note MOVIE_MONGODB_URI is a SECOND, separate connection
# string - the plugin opens its own client and does not use MONGODB_URI above.
# Under Docker this one also needs host.docker.internal.
MOVIE_MONGODB_URI=mongodb://localhost:27017
MOVIE_DB_NAME=your_movie_db_name
TMDB_ACCESS_TOKEN=your_tmdb_v4_access_token
MOVIE_BOT_TOKEN=your_movie_bot_token