Built motion from commit de2cb856.|2.0.37
[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: '192.168.1.56',
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: '192.168.1.56',
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: '192.168.1.56',
51         port: '5038',
52         username: 'xcall',
53         password: 'xcall1234'
54     },
55     rpc: {
56         port: process.env.RPCPORT || 9001,
57         ip: process.env.RPCIP || '127.0.0.1',
58     },
59     agi: {
60         port: process.env.AGIPORT || 4573,
61         ip: process.env.AGIIP || '127.0.0.1',
62     },
63     // Seed database on startup
64     seedDB: true,
65     google: {
66         clientID: process.env.GOOGLE_ID || 'id',
67         clientSecret: process.env.GOOGLE_SECRET || 'secret',
68         callbackURL: (process.env.DOMAIN || 'http://localhost:9000') + '/api/auth/google/callback'
69     }
70 };