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:
egg
2025-12-14 15:02:16 +08:00
parent 858d93155f
commit 86a6633000
31 changed files with 1177 additions and 252 deletions

View File

@@ -7,13 +7,16 @@ import pytest
import requests
import time
import json
import os
from pathlib import Path
from typing import Optional, Dict
# Test configuration
API_BASE_URL = "http://localhost:8000/api/v2"
TEST_USER_EMAIL = "ymirliu@panjit.com.tw"
TEST_USER_PASSWORD = "4RFV5tgb6yhn"
# Test configuration - use environment variable or settings
from app.core.config import settings
API_BASE_URL = settings.e2e_api_base_url
TEST_USER_EMAIL = os.getenv("E2E_TEST_USER_EMAIL", "test@example.com")
TEST_USER_PASSWORD = os.getenv("E2E_TEST_USER_PASSWORD", "testpassword")
# Test documents (assuming these exist in demo_docs/)
TEST_DOCUMENTS = {