Configuration

All configuration happens through environment variables.

Delivery Console settings

An environment variable like REACT_APP_FOO controls the setting FOO.

REACT_APP_SENTRY_PUBLIC_DSN
Default:null

Optional. The DSN for Raven to report errors to Sentry.

REACT_APP_NORMANDY_ADMIN_API_ROOT_URL
Default:https://localhost:8000/api/

The root url for the Normandy API that should be used for users with access to the Normandy admin.

REACT_APP_NORMANDY_READ_ONLY_API_ROOT_URL
Default:null

The root url for the Normandy API that should be used for users without access to the Normandy admin. It will be used as a fallback in case the admin server is inaccesible.

REACT_APP_OIDC_CLIENT_ID
Default:hU1YpGcL82wL04vTPsaPAQmkilrSE7wr

The Auth0 client ID to be used when authenticating.

REACT_APP_OIDC_DOMAIN
Default:auth.mozilla.auth0.com

The Auth0 domain to use for authenticating the user.

REACT_APP_OIDC_CALLBACK_URL
Default:The TLD origin for the current URL

The URL to redirect users back to after the Auth0 authentication dance is complete.

REACT_APP_OIDC_AUDIENCE
Default:https://${OIDC_DOMAIN}/userinfo

The audience for the access token that is generated by Auth0.

REACT_APP_CHECK_AUTH_EXPIRY_INTERVAL_MS
Default:300000

How often to issue a silent authentication refresh. Technically, when you’re logged in, an infinite loop is run that refreshes your access token forever. And this number is the number of milliseconds to sleep between each check.

This number is also used to preemptively trigger a refresh. Meaning, if the access token hasn’t yet expired but it will in REACT_APP_CHECK_AUTH_EXPIRY_INTERVAL_MS milliseconds, that triggers an authentication refresh too.