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