2 Configuration
Steffo edited this page 2026-09-04 03:48:03 +02:00

Configuration

Sojuauth is configured via environment variables, and requires the following to be set.

Variable Description Example
SITE_URL The URL at which Sojuauh will be available at. https://sojuauth.example.org
AXUM_BIND The socket address at which Sojuauth should serve web pages. 0.0.0.0:8080
REDIS_URL The URL at which Redis is available at, in fred format. redis://localhost:6379/2
REDIS_POOL_SIZE The number of connections to make to Redis. 4
REDIS_RECONNECT_DELAY_S How many seconds are added to the back-off delay if connection fails. 1
REDIS_RECONNECT_MAXDELAY_S The maximum amount of seconds that the back-off delay can reach. 60
OIDC_ISSUER The URL of the OpenID Connect issuer, to which .well-known/oidc-configuration will be appended. https://idm.example.org/oauth2/openid/sojuauthdebug
OIDC_CLIENT_ID The client ID provided to you by the OpenID Connect issuer. sojuauthdebug
OIDC_CLIENT_SECRET The client secret provided to you by the OpenID Connect issuer. redacted
AUTH_EXPIRATION_S How long you can stay on the OpenID Connect authorization page for before the request expires. 900