02308dc54a
- Fix 2 backend test failures (projectFolders validation, StressTest timeout) - Fix frontend test dependency (@testing-library/dom) - Delete App.tsx.bak from repo - Add rate limiting on auth endpoints (login: 10/min, register: 3/min) - Add .env.example with all environment variables - Update BAUPLAN.md with accurate phase status (16/21 phases implemented) - Add OpenAPI/Swagger documentation (docs/openapi.yaml) - Add E2E workflow test (15 steps: register→project→drawing→layer→element→CRUD→delete) - Add Forgejo CI/CD pipeline (.forgejo/workflows/ci.yml) - Improve .gitignore (db-wal, .env.*, *.bak, coverage) - Add security comment for default user in schema.sql All 628 tests passing (254 backend + 374 frontend)
16 lines
315 B
Bash
16 lines
315 B
Bash
# Web CAD Backend Environment Variables
|
|
|
|
# JWT/Session secret - MUST be changed in production
|
|
JWT_SECRET=change-me-in-production
|
|
|
|
# OpenRouter API key for KI Copilot (optional)
|
|
API_KEY_OPENROUTER=
|
|
|
|
# Database path (SQLite)
|
|
DB_PATH=/app/data/cad.db
|
|
|
|
# Server configuration
|
|
PORT=3001
|
|
HOST=0.0.0.0
|
|
NODE_ENV=production
|