not quite finished

This commit is contained in:
Caleb James DeLisle
2015-01-30 18:12:20 +01:00
parent 0e44b10aeb
commit 84164123b6
13 changed files with 54 additions and 10 deletions

View File

@@ -18,6 +18,14 @@ app.use(Express.static(__dirname + '/www'));
app.use("/bower_components/jquery.sheet/bower_components",
Express.static(__dirname + '/www/bower_components'));
var customize = "/customize";
if (!Fs.existsSync(__dirname + "/customize")) {
customize = "/customize.dist";
console.log("Cryptpad is customizable, see customize.dist/readme.md for details");
}
app.use("/customize/", Express.static(__dirname + customize));
app.get("/", function(req, res) { res.sendfile(__dirname + customize + '/index.html'); });
var httpsOpts;
if (config.privKeyAndCertFiles) {
var privKeyAndCerts = '';