Align production env template with non Docker deploy
This commit is contained in:
+25
-35
@@ -1,59 +1,49 @@
|
||||
# ==========================================
|
||||
# AI Agent Admin - 生产环境配置模板
|
||||
# 使用已有数据库和 Redis,不启动 postgres/redis 容器
|
||||
# ==========================================
|
||||
# 使用方式: 复制此文件为 .env.prod,修改参数后运行:
|
||||
# docker compose -f docker-compose.prod.yml --env-file .env.prod up -d
|
||||
# ==========================================
|
||||
# AI Agent Admin production environment template.
|
||||
# Copy this file to backend-fastapi/env/prod.env on the server and replace all
|
||||
# placeholder values before starting the non-Docker systemd service.
|
||||
|
||||
# 应用名称(也作为容器名/数据卷名/网络名的前缀,多实例部署时须不同)
|
||||
APP_NAME=ai-agent-admin
|
||||
ENV=prod
|
||||
DEBUG=false
|
||||
APP_HOST=127.0.0.1
|
||||
APP_PORT=8001
|
||||
|
||||
# ========== 数据库配置 ==========
|
||||
# 数据库类型: postgresql / mysql / sqlserver
|
||||
# Database: postgresql / mysql / sqlserver.
|
||||
DB_TYPE=postgresql
|
||||
# 外部数据库地址
|
||||
DB_HOST=192.168.1.100
|
||||
DB_HOST=127.0.0.1
|
||||
DB_PORT=5432
|
||||
DB_USER=postgres
|
||||
DB_PASSWORD=your_strong_password
|
||||
DB_PASSWORD=replace_with_database_password
|
||||
DB_NAME=ai_agent_admin
|
||||
|
||||
# ========== Redis 配置 ==========
|
||||
REDIS_HOST=192.168.1.100
|
||||
# Redis.
|
||||
REDIS_HOST=127.0.0.1
|
||||
REDIS_PORT=6379
|
||||
REDIS_PASSWORD=your_redis_password
|
||||
REDIS_PASSWORD=replace_with_redis_password
|
||||
REDIS_DB=0
|
||||
|
||||
# ========== 安全配置 ==========
|
||||
JWT_SECRET_KEY=your-strong-secret-key-change-in-production
|
||||
ACCESS_TOKEN_EXPIRE_MINUTES=1440 # 10080 7天
|
||||
# Security.
|
||||
JWT_SECRET_KEY=replace_with_a_long_random_secret
|
||||
ACCESS_TOKEN_EXPIRE_MINUTES=1440
|
||||
REFRESH_TOKEN_EXPIRE_DAYS=30
|
||||
ALLOW_MULTI_DEVICE_LOGIN=true
|
||||
|
||||
# ========== 存储配置 ==========
|
||||
# 存储类型: local / minio
|
||||
# Local file storage is the default for the lightweight deployment.
|
||||
FILE_STORAGE_TYPE=local
|
||||
# 本地存储路径(仅 local 类型有效)
|
||||
FILE_STORAGE_LOCAL_PATH=/app/storage
|
||||
# MinIO 配置(仅 minio 类型有效)
|
||||
MINIO_ENDPOINT=192.168.1.100:9000
|
||||
MINIO_ACCESS_KEY=minio_admin
|
||||
MINIO_SECRET_KEY=your_minio_secret
|
||||
FILE_STORAGE_LOCAL_PATH=/opt/ai-agent-admin/storage
|
||||
|
||||
# Optional MinIO storage. Leave empty when FILE_STORAGE_TYPE=local.
|
||||
MINIO_ENDPOINT=
|
||||
MINIO_ACCESS_KEY=
|
||||
MINIO_SECRET_KEY=
|
||||
MINIO_BUCKET_NAME=ai-agent-admin
|
||||
MINIO_SECURE=false
|
||||
|
||||
# ========== 端口映射 ==========
|
||||
BACKEND_PORT_MAPPING=8000
|
||||
WEB_PORT=80
|
||||
|
||||
# ========== 钉钉配置 ==========
|
||||
# Optional OAuth callbacks.
|
||||
DINGTALK_REDIRECT_URI=
|
||||
DINGTALK_H5_REDIRECT_URI=
|
||||
|
||||
# ========== 企业微信配置 ==========
|
||||
WECOM_REDIRECT_URI=
|
||||
WECOM_H5_REDIRECT_URI=
|
||||
|
||||
# ========== 其他 ==========
|
||||
TIMEZONE=Asia/Shanghai
|
||||
CACHE_PREFIX=ai-agent-admin:prod:
|
||||
|
||||
Reference in New Issue
Block a user