Files
infoscreen3/config-default.js
T
Reaby 0c47f3a5e0 ensure user is authenticated, othervice websocket connection is ignored.
secureViews is always true and config value is now deprecated and ignored.
new dependencies has been added, so needs to run `npm install` for first start.
newly added deps: sqlite3, connect-sqlite3 and passport.socketio
a file `./data/sessions.db` will be created to hold sessions cache
and may be possible used in future if there's a need for database.
2020-02-25 15:21:57 +02:00

64 lines
1.7 KiB
JavaScript

let displays = require(`./data/displays.json`);
module.exports = {
"serverListenPort": process.env.PORT || 8000,
"serverHost": process.env.HOST || "127.0.0.1",
"serverUrl": "http://" + (process.env.HOST || "127.0.0.1"), // used for web client
"sessionKey": "generateRandomStringForSecret",
"useLocalAssets": false, // used to load javascript libraries locally from /public/assets
"mediaServer": false, // local streaming server for rtmp, see docs how to use
"defaultLocale": "en",
/*
* Plugins
*/
"plugins": [
"profiler"
],
/*
* Administrators
*/
"admins": [
{
"id": 1,
"displayName": "Administrator",
"username": process.env.ADMIN_USER || "admin",
"password": process.env.ADMIN_PASS || "admin",
"permissions": {
"isAdmin": true,
"dashboard": {
"addBundle": true,
"addSlides": true,
"addWebPage": true,
}
}
},
{
"id": 2,
"displayName": "Display Operator",
"username": "operator",
"password": "operator",
"permissions": {
"isAdmin": true,
"dashboard": {
"addBundle": false,
"addSlides": true,
"addWebPage": false,
}
}
},
{
"id": 3,
"displayName": "Display Viewer",
"username": "view",
"password": "view",
"permissions": {
"isAdmin": false,
}
}
],
"displays": displays
};