update variable name

This commit is contained in:
array-in-a-matrix 2024-08-07 10:33:08 -04:00
parent 4d4f318715
commit 03f328a648
2 changed files with 4 additions and 3 deletions

View file

@ -10,11 +10,12 @@ type
staticDir*: string staticDir*: string
appName*: string appName*: string
# database # database
db*: string dbType*: string
dbHost*: string dbHost*: string
dbUser*: string dbUser*: string
dbPassword*: string dbPassword*: string
dbDatabase*: string dbDatabase*: string
# general
uploadDir*: string uploadDir*: string
@ -44,7 +45,7 @@ proc getConfig(): Cfg =
staticDir: config.get("Server", "staticDir", "./public/"), staticDir: config.get("Server", "staticDir", "./public/"),
appName: config.get("Server", "appName", ""), appName: config.get("Server", "appName", ""),
# database # database
db: config.get("Database", "db", "postgresql"), dbType: config.get("Database", "dbType", "postgresql"),
dbHost: config.get("Database", "dbHost", "db"), dbHost: config.get("Database", "dbHost", "db"),
dbUser: config.get("Database", "dbUser", "postgres"), dbUser: config.get("Database", "dbUser", "postgres"),
dbPassword: config.get("Database", "dbPassword", "postgresql"), dbPassword: config.get("Database", "dbPassword", "postgresql"),

View file

@ -16,7 +16,7 @@ const defaultConf* =
[Database] [Database]
; 2 database types are supported PostgreSQL or SQLite. ; 2 database types are supported PostgreSQL or SQLite.
#db = postgresql #dbType = postgresql
; IP address or domain of the database. ; IP address or domain of the database.
#dbHost = "db" #dbHost = "db"
; Database user. ; Database user.