mirror of
https://github.com/storytold/discord-github-ticket-relay.git
synced 2026-11-20 14:31:08 +01:00
59 lines
3.1 KiB
Bash
59 lines
3.1 KiB
Bash
# ---- Required --------------------------------------------------------------------------
|
||
# SQLite database file, shared by the web and worker processes (directory is created).
|
||
DATABASE_PATH=./data/ticket-relay.db
|
||
# Screenshots and recordings attached to tickets (default: a files/ folder next to the database).
|
||
# FILES_DIR=./data/files
|
||
# Public HTTPS address of this deployment (used for OAuth callbacks and the Discord endpoint).
|
||
PUBLIC_URL=http://localhost:3000
|
||
# 32 random bytes, base64. Encrypts stored tokens and ticket text. Generate: openssl rand -base64 32
|
||
# Keep it stable: changing it makes stored encrypted data unreadable.
|
||
ENCRYPTION_KEY=
|
||
|
||
# ---- Discord application (Developer Portal) ---------------------------------------------
|
||
DISCORD_APPLICATION_ID=
|
||
DISCORD_PUBLIC_KEY=
|
||
DISCORD_CLIENT_SECRET=
|
||
DISCORD_BOT_TOKEN=
|
||
|
||
# ---- GitHub App -------------------------------------------------------------------------
|
||
GITHUB_APP_ID=
|
||
GITHUB_APP_SLUG=
|
||
GITHUB_CLIENT_ID=
|
||
GITHUB_CLIENT_SECRET=
|
||
# Private key file: download it from the GitHub App page (Private keys → Generate a private key),
|
||
# rename it to sec.pem and put it in the secrets/ folder (git-ignored). Then: chmod 600 secrets/sec.pem
|
||
GITHUB_APP_PRIVATE_KEY_FILE=./secrets/sec.pem
|
||
# Alternative to the file: the key as one base64 line (base64 -w0 sec.pem). Leave unset when using the file.
|
||
# GITHUB_APP_PRIVATE_KEY=
|
||
# Optional: enables the webhook that reports uninstall/suspend immediately.
|
||
GITHUB_WEBHOOK_SECRET=
|
||
|
||
# ---- Access -----------------------------------------------------------------------------
|
||
# Comma-separated Discord user IDs allowed to create workspaces. If empty, only the very
|
||
# first person to sign in can create one; everyone else needs an invitation.
|
||
PLATFORM_ADMIN_DISCORD_IDS=
|
||
# Set to true to let anyone who signs in create their own isolated workspace.
|
||
OPEN_WORKSPACE_CREATION=false
|
||
|
||
# ---- Claude API (optional) ---------------------------------------------------------------
|
||
# Workspaces add their own Claude API key in Settings › Claude API. This key is the fallback for
|
||
# workspaces that haven't. Get one at https://console.anthropic.com (set a spend limit there).
|
||
ANTHROPIC_API_KEY=
|
||
|
||
# ---- Legal pages ------------------------------------------------------------------------
|
||
# Shown on /terms and /privacy (Discord asks for both URLs when you verify the bot).
|
||
# The person or company that runs this deployment, and an email people can reach you at.
|
||
LEGAL_OPERATOR_NAME=
|
||
LEGAL_CONTACT_EMAIL=
|
||
|
||
# ---- Runtime (optional) -----------------------------------------------------------------
|
||
# PORT=3000
|
||
# HOST=0.0.0.0
|
||
# RUN_WORKER=true # in-process worker; ecosystem.config.cjs sets false and runs dedicated workers
|
||
# RUN_TRIAGE=true # in-process triage loop (defaults to RUN_WORKER); ecosystem.config.cjs runs it separately
|
||
# WORKER_CONCURRENCY=2 # tickets each worker process files in parallel
|
||
# AUTO_MIGRATE=true # apply database migrations on startup
|
||
# TRUST_PROXY=true # behind a reverse proxy / load balancer
|
||
# LOG_LEVEL=info
|
||
# DEV_LOGIN=true # local development only: sign in without Discord (ignored in production)
|