-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.js
80 lines (70 loc) · 1.85 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
71
72
73
74
75
76
77
78
79
80
var
config = {};
config.endpoint = {
port: 3001,
edit: false
};
config.woodServer = {
host: "http://10.95.195.163",
port: 3003,
period: 100,
type: "Madera"
};
config.goldServer = {
host: "http://10.95.195.163",
port: 3008,
period: 2000,
type: "Oro",
prerequisites: 4
};
config.cementServer = {
// It's possible to connect to multiple servers or multiple connections per server
queueServer: [{
host: 'localhost',
port: 5672, //AMQP default port
login: 'guest',
password: 'guest',
heartbeat: 1200
},
{
host: 'localhost',
port: 5672,
login: 'guest',
password: 'guest',
heartbeat: 1200
},
{
host: 'localhost',
port: 5672,
login: 'guest',
password: 'guest',
heartbeat: 1200
}],
queueName: 'cemento', // We don't create the queue, so it shall be created as PERSISTENT into RabbitMQ
period: 100,
type: "Cemento"
};
config.cementServer.description = "Simple AMQP producer to RabbitMQ. Can be " +
"mined making consuming the resources from the RabbitMQ. It provides " + config.cementServer.type;
config.woodServer.description = "Simple HTTP server without authentication. Can be " +
"mined making a GET request to the '/chop' resource. It provides " + config.woodServer.type;
config.steelServer = {
host: "http://10.95.195.163",
port: 3005,
socketIOPort: 3004,
period: 1000,
type: "Metal"
};
config.steelServer.description = "Socket IO server that provides " + config.steelServer.type + ". To mine" +
" it, follow the protocol described in the documentation."
config.mongo = {
host: "localhost",
db: 'catan-servers',
user: '',
password: ''
};
config.redis = {
host: "localhost",
port: "6379"
};
module.exports = config;