mirror of
https://github.com/glimpse-app/server.git
synced 2025-04-02 10:52:45 -04:00
update variable name
This commit is contained in:
parent
4d4f318715
commit
03f328a648
2 changed files with 4 additions and 3 deletions
|
@ -10,11 +10,12 @@ type
|
|||
staticDir*: string
|
||||
appName*: string
|
||||
# database
|
||||
db*: string
|
||||
dbType*: string
|
||||
dbHost*: string
|
||||
dbUser*: string
|
||||
dbPassword*: string
|
||||
dbDatabase*: string
|
||||
# general
|
||||
uploadDir*: string
|
||||
|
||||
|
||||
|
@ -44,7 +45,7 @@ proc getConfig(): Cfg =
|
|||
staticDir: config.get("Server", "staticDir", "./public/"),
|
||||
appName: config.get("Server", "appName", ""),
|
||||
# database
|
||||
db: config.get("Database", "db", "postgresql"),
|
||||
dbType: config.get("Database", "dbType", "postgresql"),
|
||||
dbHost: config.get("Database", "dbHost", "db"),
|
||||
dbUser: config.get("Database", "dbUser", "postgres"),
|
||||
dbPassword: config.get("Database", "dbPassword", "postgresql"),
|
||||
|
|
|
@ -16,7 +16,7 @@ const defaultConf* =
|
|||
|
||||
[Database]
|
||||
; 2 database types are supported PostgreSQL or SQLite.
|
||||
#db = postgresql
|
||||
#dbType = postgresql
|
||||
; IP address or domain of the database.
|
||||
#dbHost = "db"
|
||||
; Database user.
|
||||
|
|
Loading…
Add table
Reference in a new issue