Skip to content

Commit

Permalink
Merge branch '2.7' of https://github.com/steedos/steedos-platform int…
Browse files Browse the repository at this point in the history
…o 2.7
  • Loading branch information
hotlong committed Sep 19, 2024
2 parents d86bd56 + 528302f commit 28d5124
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
18 changes: 18 additions & 0 deletions deploy/enterprise/app/nodered/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "nodered-app",
"version": "1.0.0",
"private": "true",
"license": "MIT",
"scripts": {
"start": "node-red --settings settings.js"
},
"dependencies": {
"@steedos/node-red-contrib-steedos": "^2.4.1",
"dotenv-flow": "^3.2.0",
"ioredis": "^5.3.2",
"lodash": "^4.17.21",
"node-red": "^3.0.2",
"node-red-dashboard": "^3.4.0"
}
}

5 changes: 5 additions & 0 deletions deploy/enterprise/app/nodered/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html></html>
<body>
Welcome to Steedos Integration.
</body>
</html>
21 changes: 21 additions & 0 deletions deploy/enterprise/app/nodered/settings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"use strict";
const path = require('path');
const lodash = require('lodash');

// Node-Red Configuration
// https://nodered.org/docs/user-guide/runtime/configuration

process.env.PORT = 3200;

const storageDir = path.join(process.env.STEEDOS_STORAGE_DIR, "data", "node-red");

module.exports = {
flowFile: path.join(storageDir,'flows.json'),
flowFilePretty: true,
credentialSecret: process.env.NODERED_CREDENTIAL_SECRET || 'steedos',
userDir: path.join(storageDir, '.node-red'),
functionGlobalContext: {
lodash
},
httpStatic: path.join(__dirname, 'public'),
};

0 comments on commit 28d5124

Please sign in to comment.