Built motion from commit 47436d59.|2.6.7
[motion2.git] / server / config / environment / development.js
1 'use strict';
2
3 var jstz = require('jstz');
4 var timezone = jstz.determine();
5
6 // Development specific configuration
7 // ==================================
8 module.exports = {
9
10   // Sequelize connection opions
11   sequelize: {
12     database: 'motion2',
13     username: 'xcall',
14     password: 'xC@LL1234',
15     options: {
16       host: '127.0.0.1',
17       port: 3306,
18       dialect: 'mysql',
19       dialectOptions: {
20         charset: 'utf8mb4'
21       },
22       logging: false,
23       timezone: timezone.name(),
24       define: {
25         charset: 'utf8',
26         collate: 'utf8_general_ci'
27       }
28     }
29   },
30   sequelizeHistory: {
31     database: 'motion2',
32     username: 'xcall',
33     password: 'xC@LL1234',
34     options: {
35       host: '127.0.0.1',
36       port: 3306,
37       dialect: 'mysql',
38       dialectOptions: {
39         charset: 'utf8mb4'
40       },
41       logging: false,
42       timezone: timezone.name(),
43       define: {
44         charset: 'utf8',
45         collate: 'utf8_general_ci'
46       }
47     }
48   },
49   asterisk: {
50     ip: '127.0.0.1',
51     port: '5038',
52     username: 'xcall',
53     password: 'xcall1234'
54   },
55   redis: {
56     host: 'localhost',
57     port: '6379'
58   },
59   rpc: {
60     port: process.env.RPCPORT || 9001,
61     ip: process.env.RPCIP || '127.0.0.1',
62   },
63   agi: {
64     port: process.env.AGIPORT || 4573,
65     ip: process.env.AGIIP || '127.0.0.1',
66   },
67   // Seed database on startup
68   seedDB: true,
69   google: {
70     clientID: process.env.GOOGLE_ID || 'id',
71     clientSecret: process.env.GOOGLE_SECRET || 'secret',
72     callbackURL: (process.env.DOMAIN || 'http://localhost:9000') + '/api/auth/google/callback'
73   },
74   secrets: {
75     session: 'xcally-motion-session-secret',
76     recording: 'xcally-motion-recording-secret'
77   },
78   xdr: {
79     disabled: true,
80     local: false
81   },
82   encrypt: {
83     algorithm: 'aes192'
84   },
85   activedirectory: {
86     baseDN: process.env.AD_BASEDN || '',
87     url: process.env.AD_URL,
88     domain: process.env.AD_DOMAIN
89   }
90 };