有没有一种方法可以禁止在Bluemix上匿名访问我的NodeRed Flow Editor? [英] Is there a way to prohibit Anonymous access to my NodeRed Flow Editor on Bluemix?

查看:84
本文介绍了有没有一种方法可以禁止在Bluemix上匿名访问我的NodeRed Flow Editor?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Bluemix上的Starter Boilerplate创建了一个NodeRed应用程序.我注意到的一件事是我的Flow Editor可供公众使用(即匿名访问可以编辑我的节点并进行部署).

I've created a NodeRed app using the Starter Boilerplate on Bluemix. One thing I've noticed is that my Flow Editor is available to the public (i.e. Anonymous access can edit my nodes and deploy).

如何防止在Bluemix上匿名访问我的Flow Editor?

How can I prevent Anonymous access to my Flow Editor on Bluemix?

推荐答案

如果您返回节点红色实例的索引页面,则应该在"转到您的节点红色流程编辑器"下看到一个链接. ",上面写着"了解如何用密码保护您的实例"(或只是向下滚动页面)

If you go back to the index page for your node-red instance you should see a link under the "Go to your Node-RED flow editor" that says "Learn how to password-protect your instance" (or just scroll down the page)

这将带您了解如何使用环境变量为流程编辑器设置用户名和密码的说明

This will take you to instructions on how to use environment variables to set a username and password for the flow editor

密码保护流程编辑器

默认情况下,编辑器是打开的,任何人都可以访问和修改流. 要使用密码保护编辑器,请执行以下操作:

By default, the editor is open for anyone to access and modify flows. To password-protect the editor:

  1. 在Bluemix仪表板中,为您的应用程序选择环境变量"页面
  2. 添加以下用户定义的变量:
    • NODE_RED_USERNAME-用于保护编辑者身份的用户名
    • NODE_RED_PASSWORD-使用此密码保护编辑器的密码
  1. In the Bluemix dashboard, select the 'Environment Variables' page for your application
  2. Add the following user-defined variables:
    • NODE_RED_USERNAME - the username to secure the editor with
    • NODE_RED_PASSWORD - the password to secure the editor with

这篇关于有没有一种方法可以禁止在Bluemix上匿名访问我的NodeRed Flow Editor?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆