Taskcafe offers 3 different configuration methods.
Environment Variables
The first way is through env variables.
The available env variables are
TASKCAFE_DATABASE_HOST: The IP of the database (ex: 127.0.0.1)
TASKCAFE_DATABASE_USER: The user for the database connection (ex: 'postgres')
TASKCAFE_DATABASE_PASSWORD: The password for the database connection
TASKCAFE_DATABASE_NAME: The name of the database (ex: 'taskcafe')
TASKCAFE_MIGRATE: Setting this to true will run the database schema migrations on application startup
TASKCAFE_SERVER_HOSTNAME: The host and port to run the web service on (default is 0.0.0.0:3333)
Config file
The same configuration options above can be set through a config file. See the example config file for more information.
CLI flags
You can also set some of the config options through the CLI. Run taskcafe web --help for available options and flags.