Files
vps-manager/.env.example
T

32 lines
813 B
Bash
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.
# vps-manager 配置示例(复制为 .env 后生效)
# 系统显示名称
APP_NAME=VPS 资产管理系统
# 写操作(POST/PUT/DELETE)鉴权密钥
# 留空 = 不校验(适用于纯 Tailscale 内网环境)
# 配置后,所有写操作需在请求头携带 X-API-Key: <此密钥>
API_KEY=
# Agent 上报鉴权密钥(可选)
AGENT_KEY=
# 凭证加密主密钥(Fernet,必填以加密 API Key/SSH 凭证)
# 生成:python -c 'from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())'
MASTER_KEY=
# ---- 通知渠道:Telegram(续费提醒)----
TELEGRAM_BOT_TOKEN=
TELEGRAM_CHAT_ID=
# ---- 通知渠道:邮件(SMTP----
SMTP_HOST=
SMTP_PORT=465
SMTP_USER=
SMTP_PASSWORD=
SMTP_FROM=
SMTP_TO=
# ---- 续费提醒阈值(天)----
RENEWAL_THRESHOLD_DAYS=30