This repository has been archived on 2025-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
web-monitor/server/config.js
2021-02-28 00:57:28 -08:00

61 lines
1.7 KiB
JavaScript

const branches ={
"development": {
"config_id": "development",
"hostname": "someserver.net",
"node_port": 8081,
"database": "./app-db-dev.db",
"ssl": false,
"key": "somesecretkey", //Static key for ease of debugging
"countries": ['US', 'CA', 'N/A'],
"algorithm" : 'aes-256-cbc',
"root": "/srv/webserver",
"cookie_timeout": 3600000,
"transporter":{
"host":"smtp.someserver.net",
"port":587,
"secure":false,
"auth": {
"user": "someone@someserver.net",
"pass": "abadpassword",
},
"tls":{
"rejectUnauthorized": false
},
"debug":false,
"authMethod":"LOGIN"
}
},
"production": {
"config_id": "production",
"hostname": "someserver.net",
"node_port": 8080,
"database": "./app-db-dev.db",
"ssl": false,
"key": Math.floor((Math.random() * Math.pow(10,20)) ), //Dynamic key on start for security
"countries": ['US', 'CA', 'N/A'],
"algorithm" : 'aes-256-cbc',
"root": "/srv/webserver",
"cookie_timeout": 3600000,
"transporter":{
"host":"smtp.someserver.net",
"port":587,
"secure":false,
"auth": {
"user": "someone@someserver.net",
"pass": "abadpassword",
},
"tls":{
"rejectUnauthorized": false
},
"debug":false,
"authMethod":"LOGIN"
}
}
}
//Set branch here
var config = branches.development;
module.exports = {
config
};