Skip to content

Configuration Reference ​

All server configuration is via environment variables.

PostgreSQL ​

VariableDefaultDescription
PG_HOST—PostgreSQL hostname
PG_PORT5432PostgreSQL port
PG_USER—Database user
PG_PASSWORD_SECRET—Database password
PG_DATABASE—Database name

S3 / Object Storage ​

VariableDefaultDescription
S3_ENDPOINT—S3-compatible endpoint URL
S3_REGIONus-east-1S3 region
S3_BUCKETuxrr-eventsBucket name for event storage
S3_ACCESS_KEY_SECRET—Access key
S3_SECRET_KEY_SECRET—Secret key
S3_FORCE_PATH_STYLEtrueUse path-style addressing (required for MinIO, LocalStack)

OIDC Authentication ​

VariableDefaultDescription
OIDC_ISSUER_URL—OIDC issuer URL (used for JWKS discovery)
OIDC_CLIENT_ID—OIDC client ID (used by the dashboard for login)
OIDC_AUDIENCEOIDC_CLIENT_IDExpected aud claim in tokens (defaults to OIDC_CLIENT_ID)
OIDC_ISSUER—Expected iss claim override (optional, defaults to OIDC_ISSUER_URL)
OIDC_SCOPESopenid profile emailScopes to request during login
OIDC_ADMIN_CLAIM—JWT claim to check for admin role (without this, only the first user gets admin)
OIDC_ADMIN_VALUE—Required value in the admin claim

See Authentication for setup instructions.

Loki (Logs) ​

VariableDefaultDescription
LOKI_URL—Loki push API URL (e.g., http://loki:3100)
LOKI_AUTH_USER—Basic auth username (optional)
LOKI_AUTH_PASSWORD_SECRET—Basic auth password (optional)

Tempo (Traces) ​

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

Grafana ​

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

Redis ​

VariableDefaultDescription
REDIS_HOST—Redis host (enables horizontal scaling)
REDIS_PORT6379Redis port
REDIS_SENTINEL_HOST—Redis Sentinel host (alternative to REDIS_HOST)
REDIS_SENTINEL_PORT—Redis Sentinel port
REDIS_SENTINEL_NAME—Redis Sentinel master name

Encryption ​

VariableDefaultDescription
CRYPTO_SECRET—32-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_SECRET—Secret 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.