feat: consolidate env config and add deployment files
- Add debug_font_path, demo_docs_dir, e2e_api_base_url to config.py - Fix hardcoded paths in pp_structure_debug.py, create_demo_images.py - Fix hardcoded paths in test files - Update .env.example with new configuration options - Update .gitignore to exclude AI development files (.claude/, openspec/, AGENTS.md, CLAUDE.md) - Add production startup script (start-prod.sh) - Add README.md with project documentation - Add 1panel Docker deployment files (docker-compose.yml, Dockerfiles, nginx.conf) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
13
.env.example
13
.env.example
@@ -10,7 +10,9 @@ MYSQL_DATABASE=your-database
|
||||
|
||||
# ===== Application Configuration =====
|
||||
# Server ports
|
||||
BACKEND_HOST=0.0.0.0
|
||||
BACKEND_PORT=8000
|
||||
FRONTEND_HOST=0.0.0.0
|
||||
FRONTEND_PORT=5173
|
||||
|
||||
# Security (generate a random string for production)
|
||||
@@ -91,3 +93,14 @@ CORS_ORIGINS=http://localhost:5173,http://127.0.0.1:5173
|
||||
# ===== Logging Configuration =====
|
||||
LOG_LEVEL=INFO
|
||||
LOG_FILE=./logs/app.log
|
||||
|
||||
# ===== Development & Testing Configuration =====
|
||||
# Debug font path for visualization scripts
|
||||
DEBUG_FONT_PATH=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
|
||||
# Demo documents directory for testing
|
||||
DEMO_DOCS_DIR=./demo_docs
|
||||
# E2E test API base URL
|
||||
E2E_API_BASE_URL=http://localhost:8000/api/v2
|
||||
# E2E test credentials (set in .env.local for security)
|
||||
# E2E_TEST_USER_EMAIL=test@example.com
|
||||
# E2E_TEST_USER_PASSWORD=testpassword
|
||||
|
||||
Reference in New Issue
Block a user