You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The data/config.js file is used to customize your application.
On first install, the file does not exist. You can create one from scratch,
or get started by using the data/configExample.js file as a template.
You can also import configuration from another file, like data/configOntario.js,
then override the settings you want.
exportconstconfig={};// your configurationexportdefaultconfig;
config.application = {};
Property Name
Type
Description
Default Value
applicationName
string
Make the application your own by changing the name.
"Lottery Licence System"
logoURL
string
The path to a custom logo. Square-shaped images work best.
"/images/bingoBalls.png"
httpPort
number
The listening port for HTTP.
3000
https
object
The HTTPS configuration.
(Described below)
config.application.https = {};
Property Name
Type
Description
Default Value
port
number
The listening port for HTTPS.
null
keyPath
string
The path to the key file.
null
certPath
string
The path to the certificate file.
null
passphrase
string
The secret passphrase for the certificate.
null
config.session = {};
Property Name
Type
Description
Default Value
cookieName
string
The name of the session cookie.
"lottery-licence-manager-user-sid"
secret
string
The secret used to sign the session cookie.
"cityssm/lottery-licence-manager"
maxAgeMillis
number
The session timeout in milliseconds.
3600000
doKeepAlive
boolean
When true, the browser will ping the web application to keep the session active.
false
config.admin = {};
Note that this property can be used to activate an admin user,
that can then be used to create a proper admin user in the users.db.
It should not be used on an ongoing basis.