关键改动: - 新增本地和生产 Docker Compose、Web/Server Dockerfile 与 Nginx 模板 - 增加生产部署校验脚本、环境变量示例和 Prisma 初始迁移 - 更新部署文档、README 和架构/决策/流程/路线图说明 Co-Authored-By: Codex GPT-5 <codex@openai.com>
32 lines
688 B
Plaintext
32 lines
688 B
Plaintext
# Copy to .env.local-server for an all-in-one local/LAN deployment.
|
|
|
|
COMPOSE_PROJECT_NAME=ftb_local
|
|
|
|
# Local/LAN entrypoint
|
|
LOCAL_HTTP_PORT=8080
|
|
LOCAL_ACCESS_HOST=localhost
|
|
CLIENT_MAX_BODY_SIZE=20m
|
|
|
|
# Database
|
|
POSTGRES_USER=postgres
|
|
POSTGRES_PASSWORD=postgres
|
|
POSTGRES_DB=ftb_pm
|
|
DATABASE_URL=postgresql://postgres:postgres@postgres:5432/ftb_pm
|
|
|
|
# Redis
|
|
REDIS_URL=redis://redis:6379
|
|
|
|
# Web
|
|
NEXT_PUBLIC_API_URL=/api/v1
|
|
NEXTAUTH_URL=http://localhost:8080
|
|
NEXTAUTH_SECRET=local-server-change-me
|
|
|
|
# AI provider fallback. Admins can also configure providers in /admin/ai-config.
|
|
ANTHROPIC_API_KEY=sk-ant-xxx
|
|
|
|
# Optional mail notification settings
|
|
SMTP_HOST=
|
|
SMTP_PORT=465
|
|
SMTP_USER=
|
|
SMTP_PASS=
|