동작하는 최소 코드 수준의 v2 스캐폴딩: - docker-compose.yml: postgres, fastapi, kordoc, frontend, caddy - app/: FastAPI 백엔드 (main, core, models, ai, prompts) - services/kordoc/: Node.js 문서 파싱 마이크로서비스 - gpu-server/: AI Gateway + GPU docker-compose - frontend/: SvelteKit 기본 구조 - migrations/: PostgreSQL 초기 스키마 (documents, tasks, processing_queue) - tests/: pytest conftest 기본 설정 - config.yaml, Caddyfile, credentials.env.example 갱신 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
58 lines
1.8 KiB
Plaintext
58 lines
1.8 KiB
Plaintext
# ═══════════════════════════════════════════════════
|
|
# hyungi_Document_Server — 인증 정보 템플릿
|
|
# 실제 값을 채워서 credentials.env로 저장
|
|
# ═══════════════════════════════════════════════════
|
|
|
|
# ─── PostgreSQL ───
|
|
POSTGRES_HOST=localhost
|
|
POSTGRES_PORT=5432
|
|
POSTGRES_DB=pkm
|
|
POSTGRES_USER=pkm
|
|
POSTGRES_PASSWORD=
|
|
|
|
# ─── AI: Mac mini MLX (Qwen3.5, 기본 모델) ───
|
|
MLX_ENDPOINT=http://localhost:8800/v1/chat/completions
|
|
MLX_MODEL=mlx-community/Qwen3.5-35B-A3B-4bit
|
|
|
|
# ─── AI: GPU 서버 ───
|
|
GPU_SERVER_IP=
|
|
GPU_EMBED_PORT=11434
|
|
|
|
# ─── AI: Claude API (종량제, 복잡한 분석 전용) ───
|
|
CLAUDE_API_KEY=
|
|
|
|
# ─── AI Gateway (GPU 서버) ───
|
|
AI_GATEWAY_ENDPOINT=http://gpu-server:8080
|
|
|
|
# ─── Synology NAS ───
|
|
NAS_SMB_PATH=/Volumes/Document_Server
|
|
NAS_DOMAIN=ds1525.hyungi.net
|
|
NAS_TAILSCALE_IP=100.101.79.37
|
|
NAS_PORT=15001
|
|
|
|
# ─── Synology MailPlus (이메일 수집 + SMTP 알림) ───
|
|
MAILPLUS_HOST=mailplus.hyungi.net
|
|
MAILPLUS_PORT=993
|
|
MAILPLUS_SMTP_PORT=465
|
|
MAILPLUS_USER=hyungi
|
|
MAILPLUS_PASS=
|
|
|
|
# ─── Synology Calendar (CalDAV, 태스크 관리) ───
|
|
CALDAV_URL=https://ds1525.hyungi.net/caldav/
|
|
CALDAV_USER=hyungi
|
|
CALDAV_PASS=
|
|
|
|
# ─── kordoc 마이크로서비스 ───
|
|
KORDOC_ENDPOINT=http://kordoc-service:3100
|
|
|
|
# ─── 인증 (JWT + TOTP) ───
|
|
JWT_SECRET=
|
|
TOTP_SECRET=
|
|
|
|
# ─── 국가법령정보센터 (법령 모니터링) ───
|
|
LAW_OC=
|
|
|
|
# ─── TKSafety API (나중에 활성화) ───
|
|
#TKSAFETY_HOST=tksafety.technicalkorea.net
|
|
#TKSAFETY_PORT=
|