This repository was archived by the owner on Jan 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconfig.example.js
More file actions
128 lines (104 loc) · 3.55 KB
/
config.example.js
File metadata and controls
128 lines (104 loc) · 3.55 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/*!
* Copyright 2014, Digium, Inc.
* All rights reserved.
*
* This source code is licensed under The AGPL v3 License found in the
* LICENSE file in the root directory of this source tree.
*
* For all details and documentation: https://www.respoke.io
*/
// When saved as config.js, the file is excluded from source control
// by the .gitignore file.
var config = {};
config.name = 'Apollo';
config.port = process.env.PORT || 3000;
config.logfilePath = __dirname + '/apollo.log';
// Password hashing salt.
// Once implemented, DO NOT CHANGE or all passwords will cease to work
config.salt = 'change-this-please-1234';
// configuration for application level messages
config.systemGroupId = 'apollo-system-messages';
config.systemEndpointId = 'apollo-system-endpoint';
// Where the application lives, with no trailing slash
config.baseURL = 'http://localhost:' + config.port;
// URL to the respoke library.
config.respokeJS = 'https://cdn.respoke.io/respoke.min.js';
// You can also specify a folder where a local copy of respoke is located.
// (primarily for development purposes)
//
// config.respokeJS = '/respoke.min.js';
// config.respokeLocalPath = __dirname + '/../mercury/javascript/transporter/';
//
config.respokeLocalPath = null;
// main DB
config.mongoURI = 'mongodb://localhost:27017/apollo';
// session store
// passed directly to MongoStore
// https://github.com/kcbanner/connect-mongo
config.mongoSessions = {
secret: 'change-this-1234',
url: 'mongodb://localhost:27017/apollosessions'
};
// milliseconds for cookie to live
var day = 1000 * 60 * 60 * 24;
config.cookieMaxAge = day * 14;
config.email = {
from: 'Apollo <system@example.com>'
};
// Respoke settings
// Get appId and appSecret from the developer console:
// https://portal.respoke.io
config.respoke = {
appId: "",
appSecret: "",
roleId: "",
screenshareExtensionLink: ""
};
// Email
// Optional. Leaving smtp options blank will result in failed
// emails being logged, but will not affect app stability.
// The options are the SMTP transport options for Nodemailer.
// https://github.com/andris9/nodemailer-smtp-transport#usage
config.smtp = {
port: '',
host: '',
secure: true,
// or
service: '', // 'gmail'
auth: {
user: '',
pass: ''
}
};
// Let people sign up using their local account?
config.localSignupEnabled = true;
config.localLoginEnabled = true;
// if true, anyone may signup for an account and confirm their identity via email.
// if false, another user must confirm them before they can log in.
config.allowSelfConfirmation = false;
// if not empty, only these domains will be allowed to signup for accounts.
config.restrictLocalAccountsToDomains = [];
// Allow Google OAuth 2.0?
// Create a project and go to APIs & Auth > Credentials
// - https://console.developers.google.com
// - be sure to setup the consent screen as well
//
// Using Passport.js google oauth plugin:
// - https://github.com/jaredhanson/passport-google-oauth
config.google = {
// Apollo option: enable authentication via google?
enabled: false,
// Apollo option: restrict to a list of email domains?
// Leave empty for any domain.
domains: [],
// passport options
clientID: 'GOOGLE_CLIENT_ID',
clientSecret: 'GOOGLE_CLIENT_SECRET',
callbackURL: config.baseURL + '/auth/google/callback'
};
// Keep in mind, the maximum size for a MongoDB record is 16mb.
config.maxUploadSize = '15.6mb';
// Put your environment specific configurations here.
if (process.env.NODE_ENV === 'production') {
}
exports = module.exports = config;