Skip to content

Settings

Everything is set in .env (or a ConfigMap and Secret on Kubernetes). fedisport new-env writes a complete file; this is what each setting does.

The server

Setting Default
FEDISPORT_DOMAIN the server's name; people are @name@domain
FEDISPORT_PUBLIC_URL where browsers reach it, https://domain
FEDISPORT_NAME Fedisport the name until an admin sets one in Admin → Site
FEDISPORT_KEY_ENCRYPTION_KEY encrypts stored files and keys; never lose or change it
FEDISPORT_SESSION_SECRET signs sign-in cookies
POSTGRES_PASSWORD the database password

Sign-in

Setting Default
KEYCLOAK_PUBLIC_URL Keycloak's public address; the OIDC settings follow from it
KEYCLOAK_ADMIN_URL http://localhost:8080 the admin console's address (never public)
KEYCLOAK_ADMIN_PASSWORD the bootstrap admin, used by setup-keycloak
KEYCLOAK_DB_PASSWORD Keycloak's database password
FEDISPORT_IDP_ADMIN none keycloak: invitations make accounts, passkeys and passwords from Settings
FEDISPORT_OIDC_CLIENT_SECRET the sign-in client's secret
FEDISPORT_IDP_ADMIN_CLIENT_SECRET the account-management client's secret
KEYCLOAK_SMTP_HOST, _PORT, _SECURITY, _FROM, _USER, _PASSWORD email (_SECURITY: starttls, ssl or none)
FEDISPORT_OIDC_ISSUER, FEDISPORT_OIDC_DISCOVERY_URL derived only for another OpenID Connect provider

Optional features

Setting Default
FEDISPORT_GEOCODER none nominatim: town names for activities (OpenStreetMap, cached)
FEDISPORT_MAPS off regions: street maps under routes, fetched per area; planet: your own planet file
FEDISPORT_MAP_MAX_GB 5 disk for map regions
FEDISPORT_EXAMPLE_ACTIVITY an activity id for the public example page
FEDISPORT_UPDATE_CHECK true the daily, anonymous check for new versions
FEDISPORT_HUB_URL https://api.joinfedisport.org the Fedisport network

Limits

Setting Default
FEDISPORT_MAX_UPLOAD_BYTES 50 MB one activity file
FEDISPORT_MAX_IMPORT_BYTES 4 GB an archive to import
FEDISPORT_CPU_WORKERS cores − 1 processes for parsing; set it in containers
FEDISPORT_INBOX_PER_MINUTE 300 deliveries from one address per minute
FEDISPORT_KEY_FETCHES_PER_MINUTE 30 new keys fetched per server per minute
FEDISPORT_SIGNUP_POW 150000 the Join page's proof-of-work difficulty

Deployment

Setting Default
FEDISPORT_BIND_ADDR 127.0.0.1 the address the proxy reaches web and Keycloak on
FORWARDED_ALLOW_IPS the proxy's address, so client addresses are trusted from it
COMPOSE_PROFILES keycloak to run the bundled Keycloak