UNPKG

@frangoteam/fuxa

Version:

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

124 lines (98 loc) 5.05 kB
module.exports = { // Version to manage update version: 1.4, // 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. // - 'none': Completely disables HTTP request logging to clean the console for custom debugging scripts and reduce I/O overhead. // // 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, // Logs retention logs: { retention: 'none' }, // 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 // Please use exact origin urls for better and safe CORS (Wild Cards not Recommended) // "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.*", "http://localhost:4200"], // 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: '<set-a-strong-random-secret>', //tokenExpiresIn: '1h', // '1h'=1hour, 60=60seconds, '1d'=1day //enableRefreshCookieAuth: false, // if true, use refresh token HttpOnly cookie flow //refreshTokenExpiresIn: '7d' // '7d'=7days, 12h=12hours, 3600=3600seconds // Heartbeat interval in seconds (1-20) heartbeatIntervalSec: 10, // Enable GPIO in Raspberry // To enable only by Raspberry Host //Location to output webcam capture webcamSnapShotsDir: '_webcam_snapshots', //cleanup old snapshots Default false webcamSnapShotsCleanup: false, //snapshots retention in days webcamSnapShotsRetain: 7, swaggerEnabled: false, nodeRedEnabled: false, // Node-RED access mode: "secure" (auth required) or "legacy-open" (no auth) nodeRedAuthMode: "secure", // Node-RED: allow unsafe stdlib modules in functionGlobalContext // WARNING: Enabling this exposes modules like child_process/net to flows. nodeRedUnsafeModules: false, }