filesend/.env

70 lines
2.0 KiB
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.

# 应用统一配置文件
# 复制此文件为 .env 并修改相应配置
# ==========================================
# 基础配置
# ==========================================
NODE_ENV=development
APP_NAME=FileSend
APP_VERSION=1.0.0
# ==========================================
# API配置
# ==========================================
# 前端API基础URL
REACT_APP_API_BASE_URL=http://localhost:5000
# 后端服务配置
FLASK_ENV=development
FLASK_DEBUG=true
FLASK_HOST=0.0.0.0
FLASK_PORT=5000
# ==========================================
# 数据库配置
# ==========================================
# SQLite配置默认适合开发环境
#DATABASE_URL=sqlite:///filesend.db
# MySQL配置生产环境推荐
DATABASE_URL=mysql+pymysql://root:taiyi1224@localhost:3306/filesend_db?charset=utf8mb4
# PostgreSQL配置
# DATABASE_URL=postgresql://username:password@localhost:5432/filesend_db
# ==========================================
# 安全配置
# ==========================================
JWT_SECRET=your-super-secret-jwt-key-change-this-in-production
CORS_ORIGINS=http://localhost:3000,http://127.0.0.1:3000,http://154.64.255.157:3000,http://154.64.255.157:3001
# ==========================================
# 存储配置
# ==========================================
STORAGE_PATH=./uploads
MAX_FILE_SIZE=104857600
FILE_EXPIRE_DAYS=7
# ==========================================
# 邮件配置(可选)
# ==========================================
EMAIL_ENABLED=false
EMAIL_HOST=
EMAIL_PORT=587
EMAIL_SECURE=false
EMAIL_USER=
EMAIL_PASS=
EMAIL_FROM=
# ==========================================
# 生产环境配置(部署时修改)
# ==========================================
# 生产环境请取消注释并修改以下配置
# NODE_ENV=production
# REACT_APP_API_BASE_URL=https://your-domain.com
# FLASK_ENV=production
# FLASK_DEBUG=false
# FLASK_HOST=0.0.0.0
# FLASK_PORT=5000
# JWT_SECRET=your-production-jwt-secret
# CORS_ORIGINS=https://your-domain.com