- Add Users table for display name resolution from AD authentication - Integrate DIFY AI service for report content generation - Create docx assembly service with image embedding from MinIO - Add REST API endpoints for report generation and download - Add WebSocket notifications for generation progress - Add frontend UI with progress modal and download functionality - Add integration tests for report generation flow Report sections (Traditional Chinese): - 事件摘要 (Summary) - 時間軸 (Timeline) - 參與人員 (Participants) - 處理過程 (Resolution Process) - 目前狀態 (Current Status) - 最終處置結果 (Final Resolution) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
# Database Configuration
|
|
DATABASE_URL=postgresql://dev:dev123@localhost:5432/task_reporter
|
|
# For development with SQLite (comment out DATABASE_URL above and use this):
|
|
# DATABASE_URL=sqlite:///./task_reporter.db
|
|
|
|
# Security
|
|
FERNET_KEY= # Generate with: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
|
|
|
|
# AD API
|
|
AD_API_URL=https://pj-auth-api.vercel.app/api/auth/login
|
|
|
|
# Session Settings
|
|
SESSION_INACTIVITY_DAYS=3
|
|
TOKEN_REFRESH_THRESHOLD_MINUTES=5
|
|
MAX_REFRESH_ATTEMPTS=3
|
|
|
|
# MinIO Object Storage Configuration
|
|
# For local development, use docker-compose.minio.yml to start MinIO
|
|
MINIO_ENDPOINT=localhost:9000
|
|
MINIO_ACCESS_KEY=minioadmin
|
|
MINIO_SECRET_KEY=minioadmin
|
|
MINIO_BUCKET=task-reporter-files
|
|
MINIO_SECURE=false # Set to true for HTTPS in production
|
|
|
|
# DIFY AI Service Configuration
|
|
# Used for AI-powered incident report generation
|
|
DIFY_BASE_URL=https://dify.theaken.com/v1
|
|
DIFY_API_KEY= # Required: Get from DIFY console
|
|
DIFY_TIMEOUT_SECONDS=120 # Timeout for AI generation requests
|
|
|
|
# Report Generation Settings
|
|
REPORT_MAX_MESSAGES=200 # Summarize older messages if room exceeds this count
|
|
REPORT_STORAGE_PATH=reports # MinIO path prefix for generated reports
|