Files
infoscreen3/config.js
T
Petri Järvisalo a0875f8c1f Update Infoscreen3 to 1.6.4
* Update npm dependencies
* Change config to use environmental variables,
* Fix videos to actually show (modern browsers needs muted volume)
* Fix videos to load actually for lite and css views
* Provide zip with precompiled binaries for super-easy setup
2023-11-12 02:06:32 +02:00

68 lines
2.1 KiB
JavaScript

import 'dotenv/config'
const host = "127.0.0.1" // ip of the infoscreen interface, use external address if not develoment
const port = 8000; // port for infoscreen
let hostUrl = "http://" + (process.env.HOST || host) + ":" + (process.env.PORT || port);
if (process.env.FRONT_PROXY || false) hostUrl = "https://" + (process.env.HOST || host);
export default {
"serverListenPort": process.env.PORT || port,
"serverHost": process.env.HOST || host,
"serverUrl": hostUrl,
"sessionKey": process.env.SESSIONKEY || "generateSecret", // used for encrypting cookies
"streamKey": process.env.STREAMKEY || 'INFOSCREEN3', // stream key for rtmp end point
"useLocalAssets": false, // used to load javascript libraries locally from /public/assets
"mediaServer": (process.env.MEDIASERVER == "true") ? true : false, // local streaming server for rtmp, see docs how to use
"defaultLocale": process.env.LOCALE || "en", // currently supported values are: "en","fi"
/*
* Plugins
*/
"plugins": [
// "profiler", // display memory statistics at console.
],
/*
* 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 Viewer",
"username": process.env.USER || "view",
"password": process.env.PASS || "view",
"permissions": {
"isAdmin": false,
}
}
],
"displays":
[
{
"name": "Main Screen",
"bundle": "default"
},
{
"name": "Secondary Screen",
"bundle": "default"
},
]
};