Skip to content

Database

Spacebar requires a PostgreSQL database server. This allows us to tailor support for one implementation, rather than maintaining 10 of them.

We won't go into the setup of these servers here, given the scope of our documentation, but to configure Spacebar to use your shiny new database, simply set the DATABASE environment variable to your new database connection string. You can generally find decent documentation with a quick web search:

Usually, such a string will look something like postgres://username:password@127.0.0.1:5432/databaseName

For .NET based services (eg. the Admin API), the connection string will be in an appsettings file, with the following format: Host=127.0.0.1; Username=username; Password=password Database=spacebar; Port=5432; Include Error Detail=true; Maximum Pool Size=1000; Command Timeout=6000; Timeout=600;