2019-05-14 19:43:19 +00:00
|
|
|
/* jslint node: true */
|
|
|
|
"use strict";
|
2019-04-17 11:48:39 +00:00
|
|
|
var config;
|
2019-05-14 19:43:19 +00:00
|
|
|
var configPath = process.env.CRYPTPAD_CONFIG || "../config/config";
|
2019-04-17 11:48:39 +00:00
|
|
|
try {
|
2019-05-14 19:43:19 +00:00
|
|
|
config = require(configPath);
|
2019-04-17 11:48:39 +00:00
|
|
|
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");
|
|
|
|
}
|
|
|
|
} catch (e) {
|
2019-05-14 19:43:19 +00:00
|
|
|
console.log("Config not found, loading the example config. You can customize the configuration by copying config/config.example.js to " + configPath);
|
2019-04-17 11:48:39 +00:00
|
|
|
config = require("../config/config.example");
|
|
|
|
}
|
|
|
|
module.exports = config;
|
|
|
|
|