feat(envs): add CM_AUTH_SECRET to all .env.example templates

This commit is contained in:
yiekheng 2026-05-03 08:26:11 +08:00
parent e5a2a36fb2
commit 54c47cf7d2
3 changed files with 15 additions and 0 deletions

View File

@ -6,6 +6,11 @@
# === Runtime === # === Runtime ===
CM_DEBUG=true CM_DEBUG=true
# === 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=devsecret-replace-with-openssl-rand-hex-32-for-real-deploys
# === Deployment Identity === # === Deployment Identity ===
CM_DEPLOY_NAME=dev-cm CM_DEPLOY_NAME=dev-cm
CM_WEB_HOST_PORT=8000 CM_WEB_HOST_PORT=8000

View File

@ -37,3 +37,8 @@ CM_AGENT_ID=
CM_AGENT_PASSWORD= CM_AGENT_PASSWORD=
CM_SECURITY_PIN= CM_SECURITY_PIN=
CM_BOT_BASE_URL= 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=

View File

@ -37,3 +37,8 @@ CM_AGENT_ID=
CM_AGENT_PASSWORD= CM_AGENT_PASSWORD=
CM_SECURITY_PIN= CM_SECURITY_PIN=
CM_BOT_BASE_URL= 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=