add env
This commit is contained in:
64
.env
Normal file
64
.env
Normal file
@@ -0,0 +1,64 @@
|
||||
# Database Configuration (MySQL)
|
||||
DATABASE_URL=mysql+pymysql://A060:WLeSCi0yhtc7@mysql.theaken.com:33306/db_A060?charset=utf8mb4
|
||||
|
||||
# Database Connection Pool (production settings)
|
||||
DB_POOL_SIZE=20
|
||||
DB_MAX_OVERFLOW=30
|
||||
DB_POOL_TIMEOUT=10
|
||||
DB_POOL_RECYCLE=1800
|
||||
|
||||
# Security
|
||||
FERNET_KEY=lcLwCxME5_b-hvfetyya1pNSivGIVtmpehA896wfqog=
|
||||
|
||||
# Server Configuration
|
||||
HOST=0.0.0.0
|
||||
PORT=8000
|
||||
DEBUG=True
|
||||
LOG_LEVEL=INFO
|
||||
|
||||
# CORS Configuration - allowed origins (comma-separated)
|
||||
CORS_ORIGINS=http://localhost:3000
|
||||
|
||||
# System Administration
|
||||
SYSTEM_ADMIN_EMAIL=ymirliu@panjit.com.tw
|
||||
|
||||
# AD API
|
||||
AD_API_URL=https://pj-auth-api.vercel.app/api/auth/login
|
||||
AD_API_TIMEOUT_SECONDS=10
|
||||
|
||||
# Session Settings
|
||||
SESSION_INACTIVITY_DAYS=3
|
||||
TOKEN_REFRESH_THRESHOLD_MINUTES=5
|
||||
MAX_REFRESH_ATTEMPTS=3
|
||||
|
||||
# Realtime Messaging Settings
|
||||
MESSAGE_EDIT_TIME_LIMIT_MINUTES=15
|
||||
TYPING_TIMEOUT_SECONDS=3
|
||||
|
||||
# File Upload Limits (in MB)
|
||||
IMAGE_MAX_SIZE_MB=10
|
||||
DOCUMENT_MAX_SIZE_MB=20
|
||||
LOG_MAX_SIZE_MB=5
|
||||
|
||||
# MinIO Object Storage
|
||||
MINIO_ENDPOINT=localhost:9000
|
||||
MINIO_ACCESS_KEY=minioadmin
|
||||
MINIO_SECRET_KEY=minioadmin
|
||||
MINIO_BUCKET=task-reporter-files
|
||||
MINIO_SECURE=false
|
||||
|
||||
# DIFY AI Service
|
||||
DIFY_BASE_URL=https://dify.theaken.com/v1
|
||||
DIFY_API_KEY=app-LGoW3m8zwYJ0ikbvjbkLLNoS
|
||||
DIFY_TIMEOUT_SECONDS=120
|
||||
|
||||
# Report Generation
|
||||
REPORT_MAX_MESSAGES=200
|
||||
REPORT_STORAGE_PATH=reports
|
||||
|
||||
# Development Scripts Port Configuration
|
||||
# Used by start-dev.sh, start-prod.sh, and check-env.sh
|
||||
BACKEND_PORT=8000
|
||||
FRONTEND_PORT=3000
|
||||
MINIO_API_PORT=9000
|
||||
MINIO_CONSOLE_PORT=9001
|
||||
Reference in New Issue
Block a user