2019-01-20 00:16:19 +00:00
|
|
|
{-
|
|
|
|
|
|
|
|
Aggreact Configuration File
|
|
|
|
|
|
|
|
-}
|
|
|
|
let SQLiteConfig : Type = { filepath : Text }
|
|
|
|
|
|
|
|
let PostgresConfig
|
|
|
|
: Type
|
|
|
|
= { host : Text, port : Natural, user : Text, password : Text }
|
|
|
|
|
|
|
|
let DBConf : Type = < SQLite : SQLiteConfig | Postgre : PostgresConfig >
|
|
|
|
|
2019-01-27 18:30:18 +00:00
|
|
|
in { port =
|
|
|
|
3000
|
|
|
|
, jwtKeyFilePath =
|
|
|
|
"jwt.key"
|
|
|
|
, db =
|
|
|
|
DBConf.SQLite { filepath = "aggreact.db" }
|
|
|
|
}
|