Files
Telegram-Panel/.env.example
meoacgx bd454decf6 docs(docker): 精简部署文档并切换为 GHCR 镜像优先
本次变更:
- README 删除冗长 CI/Release 说明,保留稳定版/开发版的 docker pull + docker run 直接命令。
- README 的 Docker 一键部署改为 compose 拉取远程镜像流程(稳定版默认、开发版切换 TP_IMAGE)。
- docker-compose.yml 默认使用 ghcr.io/moeacgx/telegram-panel:latest,并设置 pull_policy=always,优先远程镜像部署。
- .env.example 新增 TP_IMAGE 配置说明,默认 latest,可一行切换 dev-latest。
2026-03-03 02:38:29 +08:00

31 lines
1.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Telegram Panel - Docker Compose 本地配置示例
#
# 使用方式:
# 1) 复制本文件为 .env.env 已在 .gitignore 中)
# 2) 按需填写你的值
#
# Compose 会自动读取当前目录下的 .env 用于变量替换:
# docker compose pull
# docker compose up -d
#
# 也可以显式指定:
# docker compose --env-file .env pull
# docker compose --env-file .env up -d
# 镜像标签(默认稳定版 latest
# 开发版可改为:
# TP_IMAGE=ghcr.io/moeacgx/telegram-panel:dev-latest
TP_IMAGE=ghcr.io/moeacgx/telegram-panel:latest
# Webhook 模式(生产环境可选)
# - true: 使用 Webhook需要公网 HTTPS + 反向代理转发 /api/bot/webhook/*
# - false: 默认 Long Polling
TP_TELEGRAM_WEBHOOK_ENABLED=false
# 你的公网 HTTPS 域名(必须是 https://...),例如:
# TP_TELEGRAM_WEBHOOK_BASE_URL=https://panel.example.com
TP_TELEGRAM_WEBHOOK_BASE_URL=
# Webhook 验证密钥建议随机字符串Telegram 会在请求头里携带用于校验)
TP_TELEGRAM_WEBHOOK_SECRET_TOKEN=