Repository navigation
Expand file tree
/
Copy pathexample.env
More file actions
41 lines (31 loc) · 1.56 KB
/
Copy pathexample.env
File metadata and controls
41 lines (31 loc) · 1.56 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
LCC_LOG_LEVEL=info
LCC_API_HOST=::
LCC_API_PORT=12331
# Booleans: exactly "true" or "false" (case-sensitive); anything else — including an empty value — fails at startup.
# An unset variable falls back to the schema default.
LCC_API_DISABLE_DOCS=false
# Public origin of this API — used to build the absolute asset URLs (/assets/<sha256>.<png|json>)
LCC_API_PUBLIC_URL=http://localhost:12331
# Read the client IP from X-Forwarded-For (rate limits). Only behind a trusted reverse proxy.
LCC_API_TRUST_PROXY=false
LCC_DB_PATH=./data/db.sqlite
LCC_DB_AUTO_MIGRATE=true
LCC_DB_MIGRATION_DIR=./drizzle/migrations
LCC_LOG_DIR=./data/logs
LCC_CONFIG_BASE_DIR=./config
# Uploaded textures, models and images (content-addressed files)
LCC_ASSETS_DIR=./data/assets
# Website origin: CORS allowlist, Discord redirect and the Minecraft link URLs the mod opens
LCC_APP_URL=http://localhost:12332
# Discord application (https://discord.com/developers/applications) — the same app as LeiCraft Client V1.
# Add the redirect URI below to the app's OAuth2 redirects.
LCC_DISCORD_CLIENT_ID=
LCC_DISCORD_CLIENT_SECRET=
# Defaults to <LCC_APP_URL>/auth/discord/callback
# LCC_DISCORD_REDIRECT_URI=http://localhost:12332/auth/discord/callback
# Users are added to this server on login (scope guilds.join) when both are set; the bot must be in the server.
# LCC_DISCORD_GUILD_ID=
# LCC_DISCORD_BOT_TOKEN=
# Discord user IDs that become admins when they log in (comma-separated) — bootstraps the first admin.
LCC_ADMIN_DISCORD_IDS=
# LCC_MOJANG_SESSION_SERVER_URL=https://sessionserver.mojang.com