forked from Utelagazkodas/cantServer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.json
More file actions
49 lines (37 loc) · 2.97 KB
/
settings.json
File metadata and controls
49 lines (37 loc) · 2.97 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
{
"token": 0, // 0 is read in from a file (token.txt), otherwise sets the lenght of the random token
"tokenCharset": "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", // pwease dwont twoutch mwe (the allowed charachters in a token)
"writeToken" : true, // writes out the token to the console
"port" : 443, // sets the port of the websocket server
"webPort" : 80, // sets the port for the website
"sendDataBack": false, // decides if the server sends data back to the socket where it came from
"sendVerificationBack" : true, // sends back "authenticated" when a websocket authenticates
"multipleTypesInTable" : false, // if set to true you can put multiple variable types into a table
"messageLenghtMaximum" : 256, // sets the max lenght of a message
"chunkInterval" : 1, // the seconds between sending out the chunks, set to 0 if you want it to send it instantly but that is not recommended
"saveTablesToFile" : false, // set to true if you want the tables to be saved in a file
"webServer" : true, // if set to true the server will also work as a web server
"pages" : [
// use this syntax if you want to add more pages:
// {"cache" : true, "path": "fileLocation", "redirects" : ["/url1", "/url2"]}
// decides whether the page is cached or not, recommended for images and sounds not reccomended for pages still in development
// set the file location of the page like this: ./folder/example.html
// sets the urls that send out that file
// Medias
{"cache" : true, "path" : "./files/images/404.jpeg", "redirects" : ["/images/404.jpeg"], "contentType" : "image/jpeg"},
{"cache" : true, "path" : "./files/images/favicon.ico", "redirects" : ["/favicon.ico"]},
{"cache" : true, "path" : "./files/sounds/scream.mp3", "redirects" : ["/sounds/scream.mp3"]},
{"cache" : true, "path" : "./files/images/logo.png", "redirects" : ["/images/logo.png"]},
{"cache" : true, "path" : "./files/images/github-mark.svg", "redirects" : ["/images/github-mark.svg"], "contentType" : "image/svg+xml"},
{"cache" : true, "path" : "./files/images/wavey-fingerprint.svg", "redirects" : ["/images/wavey-fingerprint.svg"], "contentType" : "image/svg+xml"},
// Scripts
{"cache" : true, "path" : "./files/js/load.js", "redirects" : ["/js/load.js"]},
{"cache" : true, "path" : "./files/js/chart.js", "redirects" : ["/js/chart.js"]},
// CSS
{"cache" : true, "path" : "./files/css/template.css", "redirects" : ["/css/template.css"]},
// Pages
{"cache" : true, "path" : "./files/pages/template.html", "redirects" : ["/template.html"]},
{"cache" : true, "path" : "./files/pages/live.html", "redirects" : ["/", "/live", "/live.html"]}
],
"errorPage" : {"path" : "./files/pages/404.html", "cache" : true} // set this to whatever you want the 404 page to be
}