Clarkson/server/config.js
Josh Stark 4a67b8ea3a Show error on registration failure.
Also fixed registration flag bug in server side
2018-02-11 09:47:25 +00:00

23 lines
446 B
JavaScript

var hash = require("./security/hash");
module.exports = (function() {
return {
port: process.env.APP_PORT || 3000,
enableRegistration: process.env.ENABLE_REGISTRATIONS || false,
mysql: {
host: process.env.MYSQL_HOST,
user: process.env.MYSQL_USERNAME,
password: process.env.MYSQL_PASSWORD
},
auth: {
jwtSecret: hash.random()
}
};
}());