-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappsettings.ts
29 lines (25 loc) · 1.25 KB
/
appsettings.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
import app = require("teem");
require("dotenv").config({ encoding: "utf8", path: app.currentDirectoryName() + "/../.env" });
export = {
localIp: process.env.app_localIp as string,
port: parseInt(process.env.app_port as string),
root: process.env.app_root as string,
urlSite: process.env.app_urlSite as string,
cookie: process.env.app_cookie as string,
cookieSecure: !!parseInt(process.env.app_cookieSecure as string),
staticFilesDir: process.env.app_staticFilesDir as string,
disableStaticFiles: !!parseInt(process.env.app_disableStaticFiles as string),
sqlConfig: {
connectionLimit: parseInt(process.env.app_sqlConfig_connectionLimit as string),
waitForConnections: !!parseInt(process.env.app_sqlConfig_waitForConnections as string),
charset: process.env.app_sqlConfig_charset as string,
host: process.env.app_sqlConfig_host as string,
port: parseInt(process.env.app_sqlConfig_port as string),
user: process.env.app_sqlConfig_user as string,
password: process.env.app_sqlConfig_password as string,
database: process.env.app_sqlConfig_database as string
},
usuarioSenhaPadrao: process.env.app_usuarioSenhaPadrao,
usuarioHashSenhaPadrao: process.env.app_usuarioHashSenhaPadrao,
usuarioHashId: parseInt(process.env.app_usuarioHashId as string, 16)
};