mirror of
https://github.com/linuxserver/Clarkson.git
synced 2026-01-09 07:01:12 +08:00
23 lines
446 B
JavaScript
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()
|
|
}
|
|
};
|
|
|
|
}());
|