我想使用领域移动平台同步服务器通过公共wifi,只有端口80在防火墙打开。
是否可以将领域移动平台(领域对象服务器)和客户端API配置为跨端口80而不是默认的9080?
发布于 2017-07-06 15:21:08
文档说:
您还必须选择高于1024的端口号,因为领域对象服务器不作为root运行。建议使用默认端口(9443)。 如果希望能够在低于1024的端口(例如默认的HTTPS端口443 )上连接到领域对象服务器,则可以将通信量转发到王国对象服务器正在侦听的端口: sudo iptables -A PREROUTING -t nat -p tcp --dport 443 -j重定向到端口9443
因此,要使用端口80成功连接,可以保留默认的http。listen_port在9080并运行以下命令:
sudo iptables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-port 9080
发布于 2017-06-14 19:07:50
是。可以通过适当设置configuration.yml来更改端口。
请参阅proxy、network和sync关于configuration.yml的部分。
以下是configuration.yml的节选。
...
proxy:
http:
listen_address: '::'
## The port that the HTTP proxy module should bind to.
# listen_port: 9080
https:
## The port that the HTTPS proxy module should bind to.
# listen_port: 9443
network:
http:
## The port on which to listen for incoming requests to the Dashboard
## and authentication APIs. This defaults to 27080.
# listen_port: 27080
sync:
## Synchronization service settings, including clustering and load balancing.
servers:
...https://stackoverflow.com/questions/44540340
复制相似问题