# 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

# Database: postgresql / mysql / sqlserver.
DB_TYPE=postgresql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_USER=postgres
DB_PASSWORD=replace_with_database_password
DB_NAME=ai_agent_admin

# Redis.
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_PASSWORD=replace_with_redis_password
REDIS_DB=0

# 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 file storage is the default for the lightweight deployment.
FILE_STORAGE_TYPE=local
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

# 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:
