如何从外部访问consul UI?
我想访问consul UI写作
<ANY_MASTER_OR_SLAVE_NODE_IP>:8500
我尝试使用ssh隧道进行访问:ssh -N -f -L 8500:localhost:8500 root@172.16.8.194
然后如果我访问http:// localhost:8500 它可以工作,但它不是我想要的.我需要外部访问,没有ssh隧道.
我的config.json文件是下一个:
{
"bind_addr":"172.16.8.216",
"server": false,
"datacenter": "nyc2",
"data_dir": "/var/consul",
"ui_dir": "/home/ikerlan/dist",
"log_level": "INFO",
"enable_syslog": true,
"start_join": ["172.16.8.211","172.16.8.212","172.16.8.213"]
}
Run Code Online (Sandbox Code Playgroud)
有帮助吗?谢谢
consul ×1