|
|
@ -11,17 +11,7 @@ var Package = require('./package.json'); |
|
|
var Path = require("path"); |
|
|
var Path = require("path"); |
|
|
var nThen = require("nthen"); |
|
|
var nThen = require("nthen"); |
|
|
|
|
|
|
|
|
var config; |
|
|
|
|
|
try { |
|
|
|
|
|
config = require('./config/config'); |
|
|
|
|
|
} catch (e) { |
|
|
|
|
|
console.log("You can customize the configuration by copying config/config.example.js to config/config.js"); |
|
|
|
|
|
config = require('./config/config.example'); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (config.adminEmail === 'i.did.not.read.my.config@cryptpad.fr') { |
|
|
|
|
|
console.log("You can configure the administrator email (adminEmail) in your config/config.js file"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
var config = require("./lib/load-config"); |
|
|
|
|
|
|
|
|
var websocketPort = config.websocketPort || config.httpPort; |
|
|
var websocketPort = config.websocketPort || config.httpPort; |
|
|
var useSecureWebsockets = config.useSecureWebsockets || false; |
|
|
var useSecureWebsockets = config.useSecureWebsockets || false; |
|
|
|