谷歌托管虚拟主机上的Websocket端口 [英] Websocket port on google managed vm
问题描述
我试图使用托管vm通过端口3000运行web套接字服务器,但我只能通过实例的ip连接到它,而不是通过我自己的域或appspot域连接。
I have tried to use managed vm to run an web socket server over port 3000 but i can only connect to it via the ip of the instance, and not by my own domain or "appspot" domain.
当我在端口80上访问应用程序时,我得到了应用程序在端口8080上发出的正确响应。
When i access the app on port 80 i get the right response that the app sends out on port 8080.
我的应用程序。 yaml:
my app.yaml:
network:
forwarded_ports:
- 3000
handlers:
- url: /.*
script: server.js
我也启用防火墙上的端口为0.0.0.0/0。
I also enabled the port on the firewall to 0.0.0.0/0.
我该如何解决这个问题?
How can i fix this?
推荐答案
这是当前预期的appspot和自定义域前端服务器的行为。不幸的是,实时知识产权是您现在需要的,但我强烈建议您将相关的公共问题跟踪器功能请求线程,以便它获得更高的优先级并加速从管道中出现的解决方案。
This is currently expected behaviour of the appspot and custom domains front-end servers. Unfortunately, IP-of-instance is what you'll need for now, although I highly recommend you to star the relevant public issue tracker feature request thread, so that it gets higher priority and accelerates the appearance of a solution from the pipeline.
这篇关于谷歌托管虚拟主机上的Websocket端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!