-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
30 lines (28 loc) · 801 Bytes
/
config.js
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
/**
* config.js -- конфигурация приложения
*/
const path = require('path');
require('dotenv').config({path: path.join(__dirname, 'env/.env')});
module.exports = {
db: {
host: process.env.FIREBIRD_BASE_HOST,
port: process.env.FIREBIRD_BASE_PORT,
database: process.env.FIREBIRD_BASE_DATABASE,
user: process.env.FIREBIRD_BASE_USER,
password: process.env.FIREBIRD_BASE_PASSWORD,
lowercase_keys: false,
role: null,
pageSize: 4096
},
security: {
appKeys: [
{owner: 'ООО АЗОВГАЗ', key: process.env.AZOVGAZ_APP_KEY},
{owner: 'ПАО Мариупольгаз', key: process.env.MARIUPOLGAZ_APP_KEY},
],
secret: process.env.SECRET,
},
server: {
listenPort: process.env.APP_PORT
},
};
module.exports.API_ENDPOINT = process.env.API_ENDPOINT;