-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.ts
30 lines (29 loc) · 1.01 KB
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// MySQL and MariaDB (5.5 and 10.2+)
// MariaDB 10.0 and 10.1 are not supported at the moment
// the default database is using sqlite3
var Conf = {
DB: {
CONF: {
ENABLE: true, //enable Database // true or false
TYPE: "sqlite3", // mysql || postgres || sqlite3 || mongodb
HOST: "127.0.0.1",
PORT: 3306,
DATABASE: "lavoca",
USERNAME: "root",
PASSWORD: "",
MONGO: {
_URI: "mongodb://localhost:27017/?readPreference=primary&ssl=false", //url mongodb
_DB: "qwerty" // db mongodb
},
Sqlite3: {
FilePath: "./database.sqlite" //path sqlite
}
}
},
PORT: 8000,
BASE_URL: "",
HOST: "localhost",
SHOW_ROUTE: true, // show route in browser http://localhost:8000/route
WebConfing: true
}
export default Conf