首页 \ 问答 \ Neo4j:Ubuntu在Microsoft Azure上托管了端点保护(Neo4j: Ubuntu hosted endpoint protection on Microsoft Azure)

Neo4j:Ubuntu在Microsoft Azure上托管了端点保护(Neo4j: Ubuntu hosted endpoint protection on Microsoft Azure)

我试图在Azure Ubuntu VM上托管neo4j服务器并打开端点以启用从我的机器访问,以便我可以访问webadmin门户并从我的机器调试Asp.net门户代码。

然而,我无法理解如何密码保护对该VM上的neo4j端点的访问,以使其不对网络上的每个人开放。 寻找至少一个简单的保护,如:

http://<user>:<pass>@myneo4j.cloudapp.net:7474/db/data

是否有关于如何在Azure云上设置neo4j的指南,我可以参考。

我找到了身份验证扩展但无法理解这是否是我在通过Neo4jClient建立连接时所需要的全部内容

关心基兰


I am trying to host the neo4j server on an Azure Ubuntu VM and opened up the endpoint to enable access from my machine so that I can access the webadmin portal and also debug Asp.net portal code from my machine.

I am however unable to understand how to password protect the access to neo4j endpoint on that VM so that its not open for everyone on the net. looking for at least a simple protection like:

http://<user>:<pass>@myneo4j.cloudapp.net:7474/db/data

Is there any guide on how to setup the neo4j on the Azure cloud that I can refer to.

I found authentication-extension but unable to understand if this is all i need when setting up connection via Neo4jClient

Regards Kiran


原文:https://stackoverflow.com/questions/26986134
更新时间:2022-04-22 08:04

最满意答案

在非SPA中,这种行为仍会发生吗? 在非SPA中切换页面时套接字是否断开连接?

在非SPA中,当您从一个页面移动到另一个页面时,浏览器会删除旧页面仍然打开的所有连接。 每个页面都在完全独立的上下文中运行。

在SPA中,您应该将套接字创建代码移动到顶级模块,这些模块仅在应用程序初始化时运行,而不是在从一个页面切换到另一个页面时运行。 因此,您将在应用程序的整个生命周期中使用单个socketio实例。


In a non-SPA would this behavior still happen? Does a socket get disconnected when switching pages in a non-SPA?

In a non-SPA, when you move from one page to another, the browser deletes any connections the old page still has open. Each page runs in a completely separate context.

In a SPA, you should move your socket creation code to a top-level module, something that runs only when the app initializes, but not when you switch from one page to another. So you will be using a single socketio instance through the life of the application.

相关问答

更多
  • 你可以这样做的方法是将socketio.on()函数移动到另一个模块。 你提到类,但这些是真正的函数,构建应用程序的方法是将它的不同部分分成模块或包。 看看我创建的这个示例 ,演示了构建使用Flask-SocketIO的Flask应用程序的一种方法。 The way you can do this is by moving the socketio.on() functions to a different module. You mention classes, but these are really ...
  • 在非SPA中,这种行为仍会发生吗? 在非SPA中切换页面时套接字是否断开连接? 在非SPA中,当您从一个页面移动到另一个页面时,浏览器会删除旧页面仍然打开的所有连接。 每个页面都在完全独立的上下文中运行。 在SPA中,您应该将套接字创建代码移动到顶级模块,这些模块仅在应用程序初始化时运行,而不是在从一个页面切换到另一个页面时运行。 因此,您将在应用程序的整个生命周期中使用单个socketio实例。 In a non-SPA would this behavior still happen? Does a s ...
  • 你做的是正确的。 仅当客户端连接到Socket.IO服务器时才会激活它。 如果您的app1和app2页面没有启动连接,那么Socket.IO服务器会将这些连接传递给Flask,并且只与app3页面上的客户端进行交互,假设您在该页面上添加了Socket.IO客户端。 What you did is the correct thing. The Socket.IO server will be activated only when a client connects to it. If your app1 a ...
  • 假设您使用最新版本的sails(0.10.0及更高版本),那么sails在socket.io上使用的协议不是公共的,但是您可以在部件上阅读它的来源以及如何解释它 。 基本上它会发出一个事件,http动词作为事件名称和对象方法,数据,URL和标题。 Javascript中有类似的东西: var request = { data: data, url: url, headers: headers }; socket.emit(method, request, callback); method必须 ...
  • 你需要做的是将一个套接字连接到一个组中: var io = require('socket.io').listen(80); io.sockets.on('connection', function (socket) { socket.join('justin bieber fans'); // put socket in a channel socket.broadcast.to('justin bieber fans').emit('new fan'); // broadcast a mess ...
  • 我的问题是socket.io是否会在新套接字连接或由于我的代码而发生时自动创建一个房间? 是的,根据每个新连接的套接字的id值自动创建一个房间,并将该套接字连接到该房间。 没有其他插座放在那个房间里。 这只是socket.io作为自己管家工作的一部分。 这不是因为你的代码。 在大多数情况下,您可以忽略该房间。 如果你试图从一些枚举中过滤它,它有一个唯一的前缀。 有没有办法摆脱socketio创建的默认房间,如果有的话。 从来没听说过。 并且,这样做可能会破坏一些socket.io内部。 My questio ...
  • 由于普通浏览器不允许JavaScript直接访问套接字,因此仅使用网页无法实现此目的。 您使用节点中介并通过websockets连接浏览器是正确的。 但是,您的应用程序可能最适合node-webkit ,它将Chromium浏览器与node.js集成在同一个包中。 这意味着您的网页代码可以直接使用UDP套接字等节点API。 Since a normal browser does not give JavaScript direct access to sockets, you can't accomplis ...
  • 检查您是否将INTERNET PERMISSION置于Manifest 。 如果你不这样做,请: Check if you put INTERNET PERMISSION in the Manifest. If you don't, put:
  • 一些东西 : (A) mongoose.connect()是一个异步操作,它返回一个承诺或进行回调。 虽然它允许立即开始使用模型,但不需要等待猫鼬建立到MongoDB的连接,但是在实现其余代码之前确保完整的逻辑以确保连接是开放的更安全(请参见http:/ / /mongoosejs.com/docs/connections.html了解更多详情) mongoose.connect('mongodb://localhost/mydb') .then(function() { // re ...
  • 对于那个“有一天”,当您的聊天应用程序需要多个容错节点服务器,并且您希望使用socket.io在服务器和客户端之间进行交叉通信时,有一个适合该帐单的node.js模块。 https://github.com/hookio/hook.io 它基本上是一个事件发射框架,用于在多个“事物”之间进行交叉通信 - 例如多个节点服务器。 与大多数模块相比,它使用起来相对复杂,这是可以理解的,因为这是一个需要解决的复杂问题。 话虽这么说,在开始遇到问题之前,你可能不得不同时拥有几千个用户和许多其他问题。 您可以做的另一件 ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。