graphlife Docs graphlife.app

Accounts and access

13. Configuration that affects this area

All configuration is by environment variable, read once at start-up. A change needs a restart.

Variable Default Effect
JWT_SECRET (required) Signs session access tokens and the OAuth consent step. At least 16 characters; the server refuses to start without it. Changing it invalidates every session access token in circulation; refresh tokens and API keys are not affected.
SIGNUP open open, first, invite or closed (section 6.1). An unknown value stops the server at start-up.
INVITE_CODE (none) The shared code for SIGNUP=invite. Required in that mode.
TRUST_PROXY off Set to true when the server is behind a reverse proxy or load balancer. Makes the server read the client address from X-Forwarded-For (for rate limiting) and the scheme from X-Forwarded-Proto (for the OAuth issuer and SSO redirect URI). Do not set it when the server is directly reachable, since clients could then forge those headers.
PUBLIC_URL (derived from the request) The server's public base URL, used in invite links and SSO redirect URIs.
OIDC_PROVIDERS (none; SSO off) JSON array of identity providers (section 9.1).
SSO_SESSION_HOURS 24 How long after an SSO sign-in the session may still be refreshed.
SECRET_KEY (none; credential storage off) Base64 of exactly 32 bytes. Enables encrypted storage of credentials such as the organisation model-provider key. SECRET_KEY_OLD may hold the previous key during a rotation.
AUDIT_RETENTION_DAYS (none; keep indefinitely) Server-wide default audit retention, in days.
IP_HASH_KEY random per process Key used to pseudonymise client addresses for rate limiting.
RATE_KEY_PER_SEC, RATE_KEY_BURST 100, 1000 Graph-call allowance of each API key and OAuth access token (section 4). RATE_KEY_PER_SEC=0 removes the limit.
RATE_SESSION_PER_SEC, RATE_SESSION_BURST 20, 60 Graph-call allowance of each account's sessions (section 4).
RESET_PASSWORD_FOR, RESET_PASSWORD_TO (none) Start-up password reset (section 6.8).
DIAG_ACCOUNTS off 1 prints an account and graph inventory to standard error at start-up (section 6.8).
PORT 8080 Listening port. The server binds to all interfaces.
DB_PATH vault.db Path of the server's SQLite database, which holds accounts, sessions, keys, organisations and the audit trail.
GRAPHS_DIR a graphs directory beside the database file Where graph files are stored. Organisation and account exports are assembled in an exports directory beside it and deleted after they are sent.