refactor: move credentials to .env and add python-dotenv support

Replace hardcoded database credentials, ntfy tokens, and Uptime Kuma
push URLs with environment variable lookups via python-dotenv.
Add .env.example template and update .gitignore to exclude .env.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Misaka_Company
2026-06-12 12:27:45 +08:00
parent bc461c12ce
commit 8639fedf74
6 changed files with 35 additions and 11 deletions

3
.gitignore vendored
View File

@@ -6,6 +6,9 @@ log
*.spec
temp
# 环境变量
.env
# Claude 临时文件
.claude/
tmpclaude-*