feat: prepare six-lesson trial backend with reliable rewards and operations
Backend CI / type-check, build, tests (push) Successful in 1m0s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-12 14:35:42 +03:30
co-authored by Cursor
parent 5e5a14030a
commit dfb20ca92c
46 changed files with 2589 additions and 123 deletions
+10 -5
View File
@@ -1,14 +1,19 @@
# Server — production cutover uses PORT=3000 (replaces legacy Fastify)
# Server — production trial uses PORT=3000
PORT=3000
HOST=0.0.0.0
NODE_ENV=development
# CORS (Vue dev server)
CORS_ORIGIN=http://localhost:5173
# CORS — exact browser origin(s); comma-separated for multiple trial hosts
CORS_ORIGIN=http://localhost:5174
# SQLite — path inside container or on host (DB_PATH or DATABASE_PATH)
# SQLite — persistent path (container: /app/data/app.db)
# DB_PATH=/app/data/app.db
# DATABASE_PATH=/app/data/app.db
# JWT — must match legacy Fastify when migrating existing tokens
# JWT — required in production (min 32 chars, not a placeholder below)
JWT_SECRET=gold-land-dev-secret-change-in-production
# Only when behind a known reverse proxy (optional in development)
# TRUST_PROXY=false
# Required in production when TRUST_PROXY=true — set your proxy/Docker network CIDR(s), not empty:
# TRUST_PROXY_CIDRS=172.20.0.0/16