35 lines
1.4 KiB
Plaintext
35 lines
1.4 KiB
Plaintext
# ---------------------------------------------------------------------------
|
|
# External database / Supabase (recommended: Supabase transaction pooler URL)
|
|
# ---------------------------------------------------------------------------
|
|
DATABASE_URL=postgresql://postgres:<password>@<host>:6543/postgres?sslmode=require
|
|
DB_SSL=require
|
|
DB_SSL_REJECT_UNAUTHORIZED=false
|
|
DB_POOL_MAX=20
|
|
DB_CONNECTION_TIMEOUT_MS=10000
|
|
DB_IDLE_TIMEOUT_MS=30000
|
|
DB_QUERY_TIMEOUT_MS=15000
|
|
DB_STATEMENT_TIMEOUT_MS=15000
|
|
DB_APP_NAME=flatlogic-backend
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# API server / security
|
|
# ---------------------------------------------------------------------------
|
|
PORT=8080
|
|
ADMIN_TOKEN=change-me-admin-token
|
|
API_INGEST_KEY=change-me-ingest-key
|
|
WEBHOOK_SECRET=change-me-global-webhook-secret
|
|
SHEIN_WEBHOOK_SECRET=change-me-shein-webhook-secret
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Optional Supabase SDK keys (if later needed by background jobs)
|
|
# ---------------------------------------------------------------------------
|
|
SUPABASE_URL=https://<project-ref>.supabase.co
|
|
SUPABASE_ANON_KEY=<anon-key>
|
|
SUPABASE_SERVICE_ROLE_KEY=<service-role-key>
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Frontend
|
|
# ---------------------------------------------------------------------------
|
|
VITE_API_BASE_URL=/api
|
|
API_SERVER_URL=http://127.0.0.1:8080
|