Fix: Throughput API v1 available - Details posted to Irving. POWERBI_KEY was missing from the .ENV file, so was not live. Add: Editor now supports editing a mix's resolved formula directly, with % and kg dual entry on ingredient rows Fix: Mix Editor should bring through correct ingredients. New resolved formula (same logic we use in Mix Calculator). Fix: Security headers on all API responses (hardening) Add: New mix button available on the Mix Editor. Add: New ingredient button available on the Ingredient Editor
45 lines
1.6 KiB
Bash
45 lines
1.6 KiB
Bash
APP_NAME=Hunter App
|
|
APP_ENV=production
|
|
CLIENT_NAME=Hunter Premium Produce
|
|
CLIENT_EMAIL=operator@example.com
|
|
CLIENT_PASSWORD=replace-with-strong-password
|
|
CLIENT_TENANT_ID=hunter-premium-produce
|
|
ADMIN_NAME=Lean 101
|
|
ADMIN_EMAIL=admin@example.com
|
|
ADMIN_PASSWORD=replace-with-strong-password
|
|
AUTH_SECRET=replace-with-a-32-character-or-longer-random-secret
|
|
|
|
# Postgres credentials. The compose file builds DATABASE_URL from these
|
|
# so you do not need to set DATABASE_URL explicitly. Override DATABASE_URL
|
|
# only if you want to point at a managed Postgres outside the compose stack.
|
|
POSTGRES_USER=lean101_app
|
|
POSTGRES_PASSWORD=replace-with-a-long-random-password
|
|
POSTGRES_DB=lean101
|
|
# DATABASE_URL=postgresql+psycopg://USER:PASS@HOST:5432/DBNAME
|
|
|
|
ORIGIN=https://clients.example.com
|
|
PUBLIC_API_BASE_URL=https://clients.example.com
|
|
INTERNAL_API_BASE_URL=http://backend:8000
|
|
CORS_ALLOW_ORIGINS=https://clients.example.com
|
|
CORS_ALLOW_ORIGIN_REGEX=
|
|
TRUSTED_HOSTS=clients.example.com,127.0.0.1,localhost
|
|
CLIENTS_APP_PORT=8081
|
|
SESSION_COOKIE_SECURE=true
|
|
SESSION_COOKIE_SAMESITE=lax
|
|
SESSION_COOKIE_DOMAIN=
|
|
SESSION_TTL_SECONDS=43200
|
|
REQUEST_BODY_MAX_BYTES=1048576
|
|
LOGIN_RATE_LIMIT_ATTEMPTS=8
|
|
LOGIN_RATE_LIMIT_WINDOW_SECONDS=300
|
|
DOCS_ENABLED=false
|
|
|
|
# Read-only Power BI / external data API at /api/v1. Set a long random key to
|
|
# enable it; leave blank to disable the API entirely. Power BI sends this as an
|
|
# "X-API-Key" header (or "?api_key=" query parameter).
|
|
POWERBI_API_KEY=V7BI59yhRBF7VMiPNfgmqPxrsPuNuPFJ
|
|
# Tenant the Power BI API reads from. Defaults to CLIENT_TENANT_ID.
|
|
POWERBI_TENANT_ID=
|
|
|
|
PUBLIC_MIX_CALCULATOR_SESSION_HISTORY=false
|
|
PUBLIC_MIX_CALCULATOR_SESSION_SAVE=false
|