Configuration
The Scrumlr backend can either be configured through CLI arguments, through environment variables or through a toml file.
Configuration via CLI
Section titled “Configuration via CLI”To get a full list of all available CLI arguments run
cd src/go run . --helpAfter that select the arguments you want to set and add them to the go run . command.
Configuration via environment variables
Section titled “Configuration via environment variables”To configure the Scrumlr backend using environment variables, set the required variables before starting the application. A complete list of all environment variables can be found here.
Configuration via TOML file
Section titled “Configuration via TOML file”You can also configure the server using a TOML file. To do this, pass the --config flag to the server executable,
followed by the path to the TOML file.
For example, to configure the server using a file named config_example.toml, you would run the following command:
go run . --config config_example.tomlTo see all values that can be set and what purpose they serve, take a look at the example config_example.toml file on GitHub.
Local OAuth setup
Section titled “Local OAuth setup”To test the authentication with Google, Microsoft or GitHub locally, the following environment variables must be set.
SESSION_SECRET: Set the session secret to a random stringSCRUMLR_AUTH_CALLBACK_HOST: Set the callback host to the Scrumlr backend running on your machine, most likely tohttp://localhost:8080SCRUMLR_AUTH_<PROVIDER>_CLIENT_IDandSCRUMLR_AUTH_<PROVIDER>_CLIENT_SECRET: Set the client id and client secret you got from the provider