-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
35 lines (30 loc) · 800 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
31
32
33
34
35
const { Sequelize, DataTypes } = require('sequelize');
exports.config = {
port: 8080,
host: '0.0.0.0',
upstream: 'https://apac-v7-sandbox.aarenet.com',
timeout: 10000,
maxServiceExtensions: 5,
};
//SQLite
// exports.sequelize = new Sequelize({
// dialect: 'sqlite',
// storage: './database/api-proxy.sqlite',
// logging: true,
// dialectOptions: {mode: 2}
// });
//MySQL
// exports.sequelize = new Sequelize('pbx', 'root', 'Welcome1', {
// host: 'localhost',
// port: '3306',
// dialect: 'mysql',
// operatorsAliases: false,
// pool: {
// max: 5,
// min: 1,
// acquire: 30000,
// idle: 10000
// },
// logging: false,
// });
exports.sequelize = new Sequelize('postgres://user:[email protected]:5432/dbname')