LiquetDocsDashboard ↗
Docs/Guides
Guides

Self-hosting

Railway/Postgres plus Vercel deployment, environment variables, security checks, and rollback.

Documented primary shape is Railway API + managed Postgres and Vercel dashboard. Fly.io is backend fallback. Production uses liquet.tech for dashboard traffic and api.liquet.tech for API traffic.

#Services

text
liquet.techVercel landing, docs, dashboard
api.liquet.techRailway FastAPI
managed Postgrestenant data

Backend startup runs Alembic and idempotent seed before Uvicorn.

#Required production checks

Writable production must set ENVIRONMENT=production, DEMO_MODE=false, AUTH_REQUIRED=true, strong SECRET_KEY, and nonempty exact ALLOWED_ORIGINS. LLM scorer also requires LLM_API_KEY.

#Secrets and configuration

VariableSecretPurpose
DATABASE_URLyesManaged Postgres connection.
SECRET_KEYyesAPI-key hashing and signed dashboard sessions; 32+ chars.
LLM_API_KEYyesRequired only for SCORER_MODE=llm.
ENVIRONMENTnoSet production for production validation.
DEMO_MODEnoRead-only hosted demo switch.
AUTH_REQUIREDnoRequired true for writable production.
ALLOWED_ORIGINSnoExact comma-separated browser origins.
REDACTIONnostandard, strict, or off.
SCORER_MODEnoheuristic or llm.
LLM_BASE_URLnoOpenAI-compatible API base.
LLM_MODELnoScorer model ID.
AMBIGUITY_THRESHOLDnoDefault 0.55.
FAILURE_COSTnoDefault 12.
NEXT_PUBLIC_API_URLnoBrowser-facing backend origin.
BACKEND_INTERNAL_URLnoDashboard proxy backend origin.
NEXT_PUBLIC_DEMO_MODEnoDashboard route behavior.
DASHBOARD_AUTH_REQUIREDnoPrivate dashboard auth gate.

#Verify

bash
curl https://api.liquet.tech/health
curl -I https://liquet.tech
curl -I https://liquet.tech/docs

Hosted demo expects playground 200 and gate 403. Writable production expects bearer-authenticated gate.

#Rollback

Promote prior healthy Vercel deployment; redeploy prior Railway deployment; or deploy prior Fly image. Alembic migrations are described as additive.

Source truthDEPLOY.mdfly.tomlrailway.tomldashboard/vercel.json