UNPKG

@frangoteam/fuxa

Version:

Web-based Process Visualization (SCADA/HMI/Dashboard) software

93 lines (75 loc) 3.86 kB
module.exports = { // Version to manage update version: 1.2, // Standard language (editor) language: 'en', // The tcp port that the FUXA web server is listening on uiPort: process.env.PORT || 1881, // Used to identify a directory of logger // Default: '_logs' logDir: '_logs', // logApiLevel Configuration for Morgan Logging // // This configuration determines the format of logging by Morgan, indirectly acting as a 'level' of logging detail. // The setting influences which predefined format or custom function Morgan uses to log HTTP requests. // // Possible values for logApiLevel: // - 'dev': Colorful and concise output for development environments, showing the method, URL, status, response length, and response time. // - 'combined': Apache combined log format. Very detailed, suitable for production environments. // - 'common': Less detailed than 'combined', omitting the referrer and user-agent. // - 'short': Shorter format that includes the remote address and request details. // - 'tiny': Minimalist format, showing just the method, URL, status, response length, and response time. // // Default Value: // - 'combined': By default, logApiLevel is set to 'combined', providing detailed logs suitable for thorough tracking and analysis. logApiLevel: 'tiny', // Used to storage Database like DAQ, User // Default: '_db' dbDir: '_db', // DAQ Enabled // Default: true daqEnabled: true, // DAQ DB to Tokenizer the file and save in archive // Default: 24 Hours (1 Day), 0 is disabled only 1 DB file daqTokenizer: 24, // Tags value to be broadcast, // if false will be send to frontend only the tags bind to current visualized views // if true all configured tags will be send to frontend broadcastAll: false, // By default, server accepts connections on all IPv4 interfaces. // To listen on all IPv6 addresses, set uiHost to "::", // The following property can be used to listen on a specific interface. For // example, the following would only allow connections from the local machine. //uiHost: "127.0.0.1", // Used to identify a directory of static content // that should be served at http://localhost:1881/. // Default: '/client/dist' //httpStatic: '/usr/home/fuxa/dist', // CORS (Cross-Origin Resource Sharing) // Used to enable CORS for all HTTP request // "allowedOrigins": ["https://example.com", "https://dashboard.example.com"] // Default: ["http://localhost", "http://127.0.0.1", "http://192.168.*", "http://10.*"] "allowedOrigins": ["http://localhost", "http://127.0.0.1", "http://192.168.*", "http://10.*"] // The maximum size of HTTP request that will be accepted by the runtime api. // Default: 100mb //apiMaxLength: '100mb', // Used to disable the server API used for Backend communication (Standalone application) // disable to use only the Editor //disableServer: false, // The following property can be used to enable HTTPS !NOT SUPPORTED NOW! // See http://nodejs.org/api/https.html#https_https_createserver_options_requestlistener // for details on its contents. // See the comment at the top of this file on how to load the `fs` module used by // this setting. // //https: { // key: fs.readFileSync('privatekey.pem'), // cert: fs.readFileSync('certificate.pem') //}, // Used to enable security, authentication and authorization and crypt Token //secureEnabled: true, //secretCode: 'frangoteam751', //tokenExpiresIn: '1h' // '1h'=1hour, 60=60seconds, '1d'=1day // Enable GPIO in Raspberry // To enable only by Raspberry Host }