Update DB configuration to mention new sqlite options

Signed-off-by: kim (grufwub) <grufwub@gmail.com>
This commit is contained in:
kim (grufwub) 2021-08-26 11:27:59 +01:00
commit 3651516467
2 changed files with 5 additions and 5 deletions

View file

@ -27,13 +27,13 @@ func databaseFlags(flagNames, envNames config.Flags, defaults config.Defaults) [
return []cli.Flag{
&cli.StringFlag{
Name: flagNames.DbType,
Usage: "Database type: eg., postgres",
Usage: "Database type: e.g. postgres, sqlite",
Value: defaults.DbType,
EnvVars: []string{envNames.DbType},
},
&cli.StringFlag{
Name: flagNames.DbAddress,
Usage: "Database ipv4 address or hostname",
Usage: "Database address: e.g. ipv4, hostname, file",
Value: defaults.DbAddress,
EnvVars: []string{envNames.DbAddress},
},

View file

@ -80,12 +80,12 @@ trustedProxies:
db:
# String. Database type.
# Options: ["postgres"]
# Options: ["postgres","sqlite"]
# Default: "postgres"
type: "postgres"
# String. Database address. Can be either an ipv4 address or a hostname.
# Examples: ["localhost","my.db.host","127.0.0.1","192.111.39.110"]
# String. Database address. e.g. ipv4, hostname, file
# Examples: ["localhost","my.db.host","127.0.0.1","192.111.39.110","./sqlite.db"]
# Default: "localhost"
address: "127.0.0.1"