Skip to content

Configuration Reference

All server configuration is via environment variables.

PostgreSQL

VariableDefaultDescription
PG_HOSTPostgreSQL hostname
PG_PORT5432PostgreSQL port
PG_USERDatabase user
PG_PASSWORD_SECRETDatabase password
PG_DATABASEDatabase name

S3 / Object Storage

VariableDefaultDescription
S3_ENDPOINTS3-compatible endpoint URL
S3_REGIONus-east-1S3 region
S3_BUCKETuxrr-eventsBucket name for event storage
S3_ACCESS_KEY_SECRETAccess key
S3_SECRET_KEY_SECRETSecret key
S3_FORCE_PATH_STYLEtrueUse path-style addressing (required for MinIO, LocalStack)

OIDC Authentication

VariableDefaultDescription
OIDC_ISSUER_URLOIDC issuer URL (used for JWKS discovery)
OIDC_CLIENT_IDOIDC client ID (used by the dashboard for login)
OIDC_AUDIENCEOIDC_CLIENT_IDExpected aud claim in tokens (defaults to OIDC_CLIENT_ID)
OIDC_ISSUERExpected iss claim override (optional, defaults to OIDC_ISSUER_URL)
OIDC_SCOPESopenid profile emailScopes to request during login
OIDC_ADMIN_CLAIMJWT claim to check for admin role (without this, only the first user gets admin)
OIDC_ADMIN_VALUERequired value in the admin claim

See Authentication for setup instructions.

Loki (Logs)

VariableDefaultDescription
LOKI_URLLoki push API URL (e.g., http://loki:3100)
LOKI_AUTH_USERBasic auth username (optional)
LOKI_AUTH_PASSWORD_SECRETBasic auth password (optional)

Tempo (Traces)

VariableDefaultDescription
OTLP_TRACES_URLOTLP HTTP endpoint (e.g., http://tempo:4318/v1/traces)

Grafana

VariableDefaultDescription
GRAFANA_URLGrafana base URL (enables "View in Grafana" links)
GRAFANA_DATASOURCEtempoTempo datasource name in Grafana

Redis

VariableDefaultDescription
REDIS_HOSTRedis host (enables horizontal scaling)
REDIS_PORT6379Redis port
REDIS_SENTINEL_HOSTRedis Sentinel host (alternative to REDIS_HOST)
REDIS_SENTINEL_PORTRedis Sentinel port
REDIS_SENTINEL_NAMERedis Sentinel master name

Encryption

VariableDefaultDescription
CRYPTO_SECRET32-byte key (or 64 hex chars) for AES-256-GCM encryption of API key secrets

Application Settings

VariableDefaultDescription
UXRR_DEV_MODEfalseBypass OIDC authentication (development only)
UXRR_MAX_EVENT_BATCH_SIZE500Max events per ingest request
UXRR_MAX_LOG_BATCH_SIZE200Max logs per ingest request
UXRR_INGEST_EVENT_FLUSH_DELAY_MS30000Max time to buffer ingest events before writing an S3 chunk
UXRR_INGEST_EVENT_FLUSH_MAX_EVENTS200Flush ingest event buffer when this many events are queued
UXRR_INGEST_EVENT_FLUSH_MAX_BYTES262144Flush ingest event buffer when buffered JSON size reaches this many bytes
UXRR_MAX_EMBED_TOKEN_TTL2592000Max embed token lifetime in seconds (30 days)
UXRR_SHARE_SECRETSecret for generating share links (min 32 characters)
DATA_RETENTION_DAYS30Auto-delete sessions older than this (0 = keep forever)

Source-available under the uxrr Source Available License.