Last active
December 2, 2015 18:52
-
-
Save joeartsea/8892f73274ce87a072da to your computer and use it in GitHub Desktop.
Node-REDの設定 ref: http://qiita.com/joeartsea/items/b5e8e14498f3098990c3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Welcome to Node-RED | |
=================== | |
3 Dec 01:54:33 - [info] Node-RED version: v0.12.1 | |
3 Dec 01:54:33 - [info] Node.js version: v0.12.7 | |
3 Dec 01:54:33 - [info] Loading palette nodes | |
3 Dec 01:54:34 - [info] Settings file : [これが設定ファイルの場所] | |
3 Dec 01:54:34 - [info] User directory : [これがユーザディレクトリ] | |
3 Dec 01:54:34 - [info] Flows file : [これがflow設定ファイルの場所] | |
3 Dec 01:54:34 - [info] Server now running at http://127.0.0.1:1880/ | |
3 Dec 01:54:34 - [info] Starting flows | |
3 Dec 01:54:34 - [info] Started flows | |
3 Dec 01:54:43 - [info] Stopping flows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
httpAdminAuth: {user:"admin", pass:"5f4dcc3b5aa765d61d8327deb882cf99"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
msg.payload = context.global.jsforce; | |
return msg; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node -e "console.log(require('crypto').createHash('md5').update('ここに実際のパスワード文字列を指定','utf8').digest('hex'))" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https: { | |
key: fs.readFileSync('privatekey.pem'), | |
cert: fs.readFileSync('certificate.pem') | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
httpNodeCors: { | |
origin: "*", | |
methods: "GET,PUT,POST,DELETE" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
httpNodeMiddleware: function(req,res,next) { | |
session({ | |
store: new MongoStore({ | |
url: process.env.MONGOLAB_URI | |
}) | |
})(req, res, function() { | |
cookieParser()(req, res, next); | |
}); | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adminAuth: { | |
type: "credentials", | |
users: [{ | |
username: "admin", | |
password: "$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN.", | |
permissions: "*" | |
}] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node -e "console.log(require('bcryptjs').hashSync(process.argv[1], 8));" ここに実際のパスワード文字列を指定 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
['subflows', 'input', 'output', 'function', 'social', 'storage', 'analysis', 'advanced'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
functionGlobalContext: { | |
jsforce: require('jsforce') | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment