Files
Telegram-Panel/.env.example
2026-01-02 18:56:24 +08:00

24 lines
829 B
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 up -d --build
#
# 也可以显式指定:
# docker compose --env-file .env up -d --build
# 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=