This repository has been archived by the owner on Jun 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.js
70 lines (58 loc) · 1.88 KB
/
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
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
// Global StaffPortal Configuration
// Configurate all StaffPortal's programs
var path = require('path'),
config;
config = {
// StaffPortal's global process, CORE
// This process handles processing that should be accessable by all programs, the launch of staffportal, the communication between staffportal nodes, and your database connection.
core: {
// Database configuration
rethink: {
// The rethinkdb nodes to connect to. An array if you're using multiple nodes, if you're using only one node an object.
nodes:
{
host: 'localhost',
port: 28015
}
,
// Database to use
db: 'StaffPortal',
// User authentication
user: 'admin',
password: '',
// Connection pool
pool: true,
buffer: 50,
max: 100
},
// The address StaffPortal should bind the socket for internal communication to.
// THIS IS NOT THE HTTP/HTTPS ADDRESS USED FOR THE WEB INTERFACE.
address: "tcp://172.0.0.1:1916",
// Internal communication secret. If not set, all incoming messages to zmq will be allowed.
secret: ""
},
// StaffPortal's connector process, BOT
// BOT handles all connections to third-party API's such as Discord.
bot: {
// Third-party service DISCORD
discord: {
login_token: "",
app_id: "",
app_secret: "",
// oauth process
oauth_endpoint: `https://discordapp.com/oauth2/authorize`,
oauth_permissions: "2146827455"
},
},
// StaffPortal's server process, SERVER
// In command of the external API and express server, aswell as websockets.
server: {
// Binding IP and port
server_ip: "172.0.0.1",
server_port: 80,
// Standard admin user and password. If password left empty, it must be set on initial login.
admin: "admin",
pass: ""
}
}
module.exports = config;