UNPKG

909 BJavaScriptView Raw
1// Initialise the global state in order to use the servers of
2// the VMauthor-CodeGradX virtual machine.
3
4var vmauthor = 'vmauthor.codegradx.org';
5//var vmauthor = '192.168.122.205';
6//var vmauthor = 'vmauthor';
7
8module.exports.initialize = function (state) {
9 state.servers = {
10 names: ['a', 'e', 'x', 's'],
11 domain: vmauthor,
12 a: {
13 //next: 1,
14 suffix: '/alive',
15 0: {
16 host: vmauthor + '/a',
17 enabled: false
18 }
19 },
20 e: {
21 //next: 1,
22 suffix: '/alive',
23 0: {
24 host: vmauthor + '/e',
25 enabled: false
26 }
27 },
28 x: {
29 //next: 1,
30 suffix: '/dbalive',
31 protocol: 'http',
32 0: {
33 host: vmauthor + '/x',
34 enabled: false
35 }
36 },
37 s: {
38 //next: 1,
39 suffix: '/index.html',
40 0: {
41 host: vmauthor + '/s',
42 enabled: false
43 }
44 }
45 };
46 return state;
47};