45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
# rex deployment template. Copy to envs/rex/.env (which is gitignored) and
|
|
# fill in the real secrets for the rex environment, OR paste the variables
|
|
# directly into the Portainer stack environment.
|
|
|
|
# === Runtime ===
|
|
# Leave unset (or 'false') in production. Setting CM_DEBUG=true exposes the
|
|
# Werkzeug debugger and is RCE if the port is reachable.
|
|
CM_DEBUG=false
|
|
|
|
# === Deployment Identity ===
|
|
CM_DEPLOY_NAME=rex-cm
|
|
CM_WEB_HOST_PORT=8001
|
|
CM_WEB_NEXT_HOST_PORT=8011
|
|
|
|
# === Docker Registry / Build ===
|
|
CM_IMAGE_PREFIX=gitea.04080616.xyz/yiekheng
|
|
DOCKER_IMAGE_TAG=latest
|
|
|
|
# === Telegram ===
|
|
TELEGRAM_BOT_TOKEN=
|
|
TELEGRAM_ALERT_CHAT_ID=
|
|
TELEGRAM_ALERT_BOT_TOKEN=
|
|
|
|
# === Database ===
|
|
DB_HOST=
|
|
DB_USER=
|
|
DB_PASSWORD=
|
|
DB_NAME=
|
|
DB_PORT=3306
|
|
DB_CONNECTION_TIMEOUT=8
|
|
DB_CONNECT_RETRIES=5
|
|
DB_CONNECT_RETRY_DELAY=2
|
|
|
|
# === Bot Config ===
|
|
CM_PREFIX_PATTERN=
|
|
CM_AGENT_ID=
|
|
CM_AGENT_PASSWORD=
|
|
CM_SECURITY_PIN=
|
|
CM_BOT_BASE_URL=
|
|
|
|
# === Auth (cm-web-next session signing) ===
|
|
# 64-character hex (32 bytes). Generate with: openssl rand -hex 32
|
|
# Rotating this secret invalidates all existing sessions (forces re-login).
|
|
CM_AUTH_SECRET=
|