2026-09-01 01:34:48 +02:00
|
|
|
#################################################################
|
|
|
|
|
# Server
|
|
|
|
|
#################################################################
|
2026-09-08 17:05:34 +02:00
|
|
|
PORT=8080
|
2026-09-01 01:34:48 +02:00
|
|
|
APP_VERSION=dev
|
|
|
|
|
|
|
|
|
|
# Set to "true" once served over HTTPS - marks the admin session cookie Secure.
|
|
|
|
|
COOKIE_SECURE=false
|
|
|
|
|
|
|
|
|
|
#################################################################
|
|
|
|
|
# Authentication (AuthGuard)
|
|
|
|
|
#################################################################
|
|
|
|
|
# Base URL of the AuthGuard centralized identity service this app authenticates
|
2026-09-14 14:12:34 +02:00
|
|
|
# through instead of a local user table. AuthGuard integration has three states:
|
|
|
|
|
# - AUTHGUARD_URL set: used immediately.
|
|
|
|
|
# - AUTHGUARD_URL unset, AUTH_DISABLED unset/false (the default): "pending"
|
|
|
|
|
# -- auth stays fully enabled/gated, waiting for ProjectConfigurator to
|
|
|
|
|
# push a live URL (see below), and fails closed on auth calls until one
|
|
|
|
|
# arrives.
|
|
|
|
|
# - AUTH_DISABLED=true: authentication is fully off (no login screen,
|
|
|
|
|
# everything open).
|
2026-09-01 01:34:48 +02:00
|
|
|
# AUTHGUARD_URL=https://auth.example.com
|
2026-09-14 14:12:34 +02:00
|
|
|
# AUTH_DISABLED=true
|
|
|
|
|
# Only set AUTH_DISABLED=true for local development or a deployment you are
|
|
|
|
|
# certain does not need access control. Leaving AUTHGUARD_URL unset does NOT
|
|
|
|
|
# do this -- it just leaves the service "pending" until ProjectConfigurator's
|
|
|
|
|
# push arrives.
|
2026-09-01 01:34:48 +02:00
|
|
|
|
2026-09-10 11:56:17 +02:00
|
|
|
# Base URL of a CarrierNode instance, for the generic per-project mount API
|
|
|
|
|
# (not used by any feature here yet).
|
|
|
|
|
# CARRIERNODE_URL=https://carrier.example.com
|
|
|
|
|
|
|
|
|
|
# Shared secret CarrierNode and ProjectConfigurator were also configured with,
|
|
|
|
|
# sent/checked as X-Internal-Auth. AUTHGUARD_URL and CARRIERNODE_URL above are
|
|
|
|
|
# only the bootstrap fallback: once this project is registered in
|
|
|
|
|
# ProjectConfigurator's Projects workspace, it pushes both values here
|
|
|
|
|
# automatically (PUT /api/core-services/internal) and keeps them current --
|
|
|
|
|
# see Core/ProjectConfigurator/README.md's "Pushing core service info to
|
|
|
|
|
# other projects". That push is itself authenticated with this secret, so it
|
2026-09-14 14:12:34 +02:00
|
|
|
# still needs to be set even though AUTHGUARD_URL/CARRIERNODE_URL don't. A
|
|
|
|
|
# push never overrides AUTH_DISABLED=true; it only ever retargets an
|
|
|
|
|
# already-enabled AuthGuard connection.
|
2026-09-10 11:56:17 +02:00
|
|
|
# INTERNAL_SERVICE_SECRET=
|
|
|
|
|
|
2026-09-01 01:34:48 +02:00
|
|
|
#################################################################
|
|
|
|
|
# PostgreSQL configuration
|
|
|
|
|
#################################################################
|
|
|
|
|
# Postgres connection string (bring your own - this app does not run Postgres for you).
|
|
|
|
|
# Example: postgres://user:password@localhost:5432/collabtable
|
|
|
|
|
DATABASE_URL=
|
|
|
|
|
|
|
|
|
|
#################################################################
|
|
|
|
|
# Startup resilience and sync tuning
|
|
|
|
|
#################################################################
|
|
|
|
|
# DB init retry interval in milliseconds (default: 5000)
|
|
|
|
|
DB_INIT_RETRY_INTERVAL_MS=5000
|
|
|
|
|
|
|
|
|
|
# Max DB init retry attempts. 0 means retry forever (default: 0)
|
|
|
|
|
DB_INIT_RETRY_MAX_ATTEMPTS=0
|
|
|
|
|
|
|
|
|
|
# Allow at most this much client clock skew into sync timestamps (default: 0)
|
|
|
|
|
# Keep this at 0 to prevent future-dated rows from being re-sent in hot loops.
|
|
|
|
|
SYNC_MAX_FUTURE_SKEW_MS=0
|
|
|
|
|
|
|
|
|
|
# Notification retention period in milliseconds (default: 7 days)
|
|
|
|
|
NOTIF_RETENTION_MS=604800000
|