Complete implementation of the production line incident response system (生產線異常即時反應系統) including: Backend (FastAPI): - User authentication with AD integration and session management - Chat room management (create, list, update, members, roles) - Real-time messaging via WebSocket (typing indicators, reactions) - File storage with MinIO (upload, download, image preview) Frontend (React + Vite): - Authentication flow with token management - Room list with filtering, search, and pagination - Real-time chat interface with WebSocket - File upload with drag-and-drop and image preview - Member management and room settings - Breadcrumb navigation - 53 unit tests (Vitest) Specifications: - authentication: AD auth, sessions, JWT tokens - chat-room: rooms, members, templates - realtime-messaging: WebSocket, messages, reactions - file-storage: MinIO integration, file management - frontend-core: React SPA structure 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
24 lines
798 B
Plaintext
24 lines
798 B
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
|