我想在公共WiFi上使用Realm Mobile Platform同步服务器,在防火墙中只打开端口80。是否可以在端口80上使用Realm Mobile Platform同步服务器?
是否有可能配置Realm移动平台(Realm Object Server)和客户端API在端口80而不是默认的9080上工作?
我想在公共WiFi上使用Realm Mobile Platform同步服务器,在防火墙中只打开端口80。是否可以在端口80上使用Realm Mobile Platform同步服务器?
是否有可能配置Realm移动平台(Realm Object Server)和客户端API在端口80而不是默认的9080上工作?
的docs说:
您还必须选择1024以上的端口号,如王国对象 Server不以root身份运行。建议使用默认端口 (9443)。
如果你想成为能够连接到域对象服务器低于1024的一个 端口上,如默认HTTPS端口443,您可以 流量转发到端口境界对象服务器监听:
须藤的iptables -A PREROUTING -t NAT -p tcp的--dport 443 -j REDIRECT --to端口9443
因此,要使用80端口连接成功,则可以保留默认的HTTP。在9080处listen_port并运行此命令:
sudo iptables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-port 9080
是的。可以通过适当地设置configuration.yml
来更改端口。
请参阅上configuration.yml
proxy
,network
和sync
部分。
以下是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:
...