Meditator
(Wendywong020)
1
版本4.x,历史原因tidb部署都是绑定内网地址
外网:xx.xx.xx.xx
内网:yy.yy.yy.yy,pd-server leader
nginx配置:
events {
worker_connections 10;
}
http {
server {
listen 2379;
server_name xx.xx.xx.xx;
location /dashboard/ {
proxy_pass http://yy.yy.yy.yy:2379/dashboard/;
}
}
}
输入:xx.xx.xx.xx:2379/dashborad

输入root密码后,可以确定root密码是正确的。
请问还可以其他什么原因造成的?
xfworld
(魔幻之翼)
2
1 个赞
边城元元
(边城元元)
4
通过页面查看一下 ,通过外网请求的接口地址是什么?
估计还需要配置 (接口的)
proxy_redirect 内网地址 外网地址
哈喽沃德
5
2379端口这台机器能正常访问http://yy.yy.yy.yy:2379/dashboard/吗?
Min_Chen
(Make the world more reliable)
7
用 nginx 把 tidb-server pd-server 的端口也代理过来,试试
Meditator
(Wendywong020)
8
是的,只有时dashboard的实际地址,才有会登录页面的,非实际dashboard地址,会显示空白的
Meditator
(Wendywong020)
9
Min_Chen
(Make the world more reliable)
10
抱歉这方面的文档目前没有。
可以打开浏览器的调试工具,看哪些请求失败了就代理一下对应端口。
Meditator
(Wendywong020)
11
Request URL: http://yy.yy.yy.yy:2379/dashboard/api/user/login
Request Method: POST
Status Code: 401 Unauthorized
Remote Address: yy.yy.yy.yy:2379
Referrer Policy: strict-origin-when-cross-origin
这里报错,奇怪。