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
|
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"),
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Add table
Reference in a new issue