[MAJOR][FIRSTCOMMIT] Added basic routes, controllers, repos to kanban service (no postgres yet)
This commit is contained in:
29
lib/constants/EnvVars.js
Normal file
29
lib/constants/EnvVars.js
Normal file
@@ -0,0 +1,29 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Environments variables declared here.
|
||||
*/
|
||||
var _a, _b, _c, _d, _e, _f, _g;
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
/* eslint-disable node/no-process-env */
|
||||
exports.default = {
|
||||
NodeEnv: ((_a = process.env.NODE_ENV) !== null && _a !== void 0 ? _a : ''),
|
||||
Port: ((_b = process.env.PORT) !== null && _b !== void 0 ? _b : 0),
|
||||
CookieProps: {
|
||||
Key: 'ExpressGeneratorTs',
|
||||
Secret: ((_c = process.env.COOKIE_SECRET) !== null && _c !== void 0 ? _c : ''),
|
||||
// Casing to match express cookie options
|
||||
Options: {
|
||||
httpOnly: true,
|
||||
signed: true,
|
||||
path: ((_d = process.env.COOKIE_PATH) !== null && _d !== void 0 ? _d : ''),
|
||||
maxAge: Number((_e = process.env.COOKIE_EXP) !== null && _e !== void 0 ? _e : 0),
|
||||
domain: ((_f = process.env.COOKIE_DOMAIN) !== null && _f !== void 0 ? _f : ''),
|
||||
secure: (process.env.SECURE_COOKIE === 'true'),
|
||||
},
|
||||
},
|
||||
Jwt: {
|
||||
Secret: ((_g = process.env.JWT_SECRET) !== null && _g !== void 0 ? _g : ''),
|
||||
Exp: (process.env.COOKIE_EXP && process.env.COOKIE_EXP !== '' ? process.env.COOKIE_EXP : '1h'), // exp at the same time as the cookie
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=EnvVars.js.map
|
||||
Reference in New Issue
Block a user