deep-risk/.env.example
2025-12-14 20:08:27 +08:00

58 lines
1.4 KiB
Plaintext
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.

# ========================================
# 数据库配置
# ========================================
# 如果使用外部数据库,设置如下:
DATABASE_URL=postgresql+asyncpg://postgres:your_password@YOUR_DB_HOST:5432/deeprisk
DB_HOST=YOUR_DB_HOST
DB_PORT=5432
DB_USER=postgres
DB_PASSWORD=your_password
DB_NAME=deeprisk
# 如果使用容器内数据库(需要启动 db 服务):
# DATABASE_URL=postgresql+asyncpg://postgres:your_password@db:5432/deeprisk
# DB_HOST=db
# DB_PORT=5432
# ========================================
# 应用配置
# ========================================
APP_NAME=DeepRisk
APP_VERSION=1.0.0
DEBUG=false
LOG_LEVEL=info
# API 配置
API_V1_STR=/api/v1
# 安全配置
SECRET_KEY=your-super-secret-key-change-this-in-production
ACCESS_TOKEN_EXPIRE_MINUTES=60
# CORS 配置
BACKEND_CORS_ORIGINS=["http://localhost"]
# ========================================
# Redis 配置(可选)
# ========================================
# 如果使用外部 Redis设置如下
REDIS_URL=redis://YOUR_REDIS_HOST:6379/0
REDIS_HOST=YOUR_REDIS_HOST
REDIS_PORT=6379
REDIS_DB=0
# 如果使用容器内 Redis需要启动 redis 服务):
# REDIS_URL=redis://redis:6379/0
# REDIS_HOST=redis
# REDIS_PORT=6379
# ========================================
# 邮件配置(可选)
# ========================================
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_FROM=
MAIL_PORT=587
MAIL_SERVER=
MAIL_FROM_NAME=