- Add Redis service (docker-compose) for caching accounts, messages, payment status - Cache accounts list (5min), messages (3min), payment status (10min) - Auto-invalidate cache on import/delete/payment-check/note-update - Add refresh button to email list panel (force re-fetch from IMAP) - Messages API supports refresh=true param to bypass cache - New cache.py module with RedisCache class Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
23 lines
551 B
Plaintext
23 lines
551 B
Plaintext
# Outlook邮件管理系统环境配置
|
||
# 复制此文件为 .env 并修改相应配置
|
||
|
||
# 管理员访问令牌(请修改为安全的密码)
|
||
ADMIN_TOKEN=admin123
|
||
|
||
# 服务器端口(默认5000)
|
||
SERVER_PORT=5000
|
||
|
||
# 服务器主机(默认0.0.0.0,接受所有连接)
|
||
SERVER_HOST=0.0.0.0
|
||
|
||
# Redis缓存地址(Docker内部自动连接,无需修改)
|
||
REDIS_URL=redis://redis:6379/0
|
||
|
||
# 时区设置
|
||
TZ=Asia/Shanghai
|
||
|
||
# 日志级别(DEBUG, INFO, WARNING, ERROR, CRITICAL)
|
||
LOG_LEVEL=INFO
|
||
|
||
# 是否启用详细日志
|
||
VERBOSE_LOGGING=false |