Database
The configuration file must also specify a database.
The supported databases are SQLite3, PostgreSQL, MariaDB, MySQL. The configuration looks like this:
[Database]
DriverName = "sqlite3"
DataSourceName = "/path/to/database"
EncryptorMasterPassword = "password"
DriverName
is the name of the datasource and can be either sqlite3
, mysql
, or postgres
. For mysql, an example of a datasource name could be:
`USER:PASSWORD@HOST:3306/DATABASE_NAME?parseTime=true`
and for postres:
`postgres://USER:PASSWORD@HOST:5432/DATABASE_NAME?sslmode=disable`
EncryptorMasterPassword
specifies a master encryption key used to protect database records. This key is not directly used to encrypt data (as explained here). Use any long random string here and make sure to keep a backup of it somewhere safe.
Updated 10 months ago