-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.js
executable file
·75 lines (48 loc) · 2.2 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
// what do you want to call your Web Server?
const name = '229th Flight Log'; // default: '229th Flight Log'
// do you need to run the server on a specific port?
const port = 4000; // default: 4000
// what is the name of the image you have stored in views/assets
// that will be displayed in the page header?
const logo = 'patch.png'; // default: 'patch.png'
/*
EDIT TOKENS BELOW ACCORDING TO YOUR NEEDS
i.e. if you have 2 game servers posting to this app
then give them each a token. You will need to share
the id and token manually to its respective game server
default:
"0": "token_for_server_0",
"1": "token_for_server_1"
*/
const tokens = {
"0": "token_for_server_0",
"1": "token_for_server_1"
};
// What do you want to search to try to find a default player name?
// This code will find '229) ' in (A/229) Huckleberry, and set that as their default player name.
// Otherwise, it will be the last name in their list of names
const handleTag = '229) '; // note, if you dont want to use it, just make it something really obscure like '%#^$(*HHHJKV*())'
// Do you want to enable the button to show the stats in Tree View?
// NOTE: This is resource intensive, and freezes some browsers while the tree is generated
const treeView = true; // default: true
// This needs to be sufficiently large to fit a growing slmod dataset
const postJsonSizeLimit = '20mb'; // default: '20mb'
// what do you want to call your database?
const databaseName = 'db'; // default: 'db'
// what do you want to call your backup database?
const backupDatabaseName = 'db_backup'; // default: 'db_backup'
//----------------------------------------------
//DO NOT EDIT PAST THIS LINE
module.exports = {
getName: function() { return name },
getLogo: function() { return logo },
getPort: function() { return port },
getTokens: function() { return tokens },
getDB: function() { return databaseName },
getAircraft: function() { return aircraft },
getHandleTag: function() { return handleTag },
getTreeView: function() { return treeView },
getBDB: function() { return backupDatabaseName },
getKillObjects: function() { return killObjects },
getPostJsonSizeLimit: function() { return postJsonSizeLimit }
}