fileshare/.env
2025-08-10 12:57:17 +08:00

31 lines
748 B
Bash
Raw Permalink 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.

# 文件传输服务环境变量配置
# 服务器配置
HOST=0.0.0.0
PORT=8000
# 文件上传配置
MAX_FILE_SIZE=104857600 # 100MB (字节)
EXPIRE_MINUTES=15 # 文件过期时间(分钟)
# 客户端配置
FILESHARE_SERVER=http://localhost:8000 # 客户端使用的服务器地址
# SSL/TLS配置生产环境
ACME_EMAIL=admin@yourdomain.com # Let's Encrypt 邮箱
# 可选:数据库配置(如果使用持久化存储)
# DATABASE_URL=sqlite:///./fileshare.db
# 可选Redis配置如果使用Redis缓存
# REDIS_URL=redis://localhost:6379/0
# 可选:安全配置
# SECRET_KEY=your-secret-key-here
# ALLOWED_HOSTS=localhost,127.0.0.1,yourdomain.com
# 日志配置
LOG_LEVEL=INFO
# 开发模式
DEBUG=false