-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkeynode.js.server_settings.js_sample
More file actions
80 lines (71 loc) · 3.1 KB
/
Copy pathkeynode.js.server_settings.js_sample
File metadata and controls
80 lines (71 loc) · 3.1 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
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
/*
* Copyright (C) 2011 Alrik Hausdorf
*
* This file is part of KeyNode.JS.
*
* KeyNode.JS is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* KeyNode.JS is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with KeyNode.JS. If not, see <http://www.gnu.org/licenses/>.
*
*/
/**
* @author Alrik Hausdorf
* Config-file for Server
*/
/* Package-Configuration */
this.cryptoPackage = "crypto";
this.fsPackage = "fs";
this.httpPackage = "http";
this.socketIoPackage = "socket.io";
this.urlPackage = "url";
this.nodeStatic = "node-static";
this.NodeMailerPackage = "nodemailer";
this.RequestPackage = "request";
/* General-Settings */
this.localInstallation = true; //if true, the passwort reset would be send to the Presenter
this.allowAnonymousAuth = true; //if true, all Presentations could be controlled by everyone, until a password is set
//this.standardPassword = 'rootKannAlles'; //global standard password
//this.standardPassword = (Math.floor(Math.random() * 4257671236709));//random global standard password
this.standardPassword = false; //every presentation gets a new random password
this.Server_Port = 80; //Port, for the Server to listen on
this.allow_new_presentations = true; //accept new presentations
/* Tag-Configuration */
this.preTagInfo = '\x1B[32m\x1B[1m[Info]\x1B[0m';
this.preTagSettings = '\x1B[32m\x1B[1m[Settings]\x1B[0m';
this.preTagServerData = '\x1B[32m\x1B[1m[Server_data]\x1B[0m';
this.preTagServer = '\x1B[32m\x1B[1m[Server]\x1B[0m';
this.preTagPres = '\x1B[32m\x1B[1m[Presentation]\x1B[0m';
/*Web-Server-Settings */
this.webRoot = "public"; //browsable Webfolder
this.presentationFolders = "presentations"; //Webfolder for Local Presentations (webRoot+"/"+presentationFolders)
/*Debug-Settings*/
this.debug = false; //General
this.socketIOdebug = false; //just for Socket.IO
/* Mailer-Settings */
this.useMail = false;
this.mailProto = "SMTP";
/* more options @ https://github.com/andris9/nodemailer */
this.smtp_options = {
host: "domain.de",
secureConnection: true,
port: 465,
auth: {
user: "user@Domain.de",
pass: ""
}
};
/* sendmail */
/*
this.mailProto = "Sendmail";
this.smtp_options = "/usr/bin/sendmail";
*/
console.log(this.preTagSettings + ' Server_settings loaded.');