Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] 请问使用 nginx 反向代理了 kubepi 后,Terminal 没任何反应。 #260

Open
zyy2477 opened this issue Aug 23, 2024 · 1 comment
Assignees

Comments

@zyy2477
Copy link

zyy2477 commented Aug 23, 2024

请描述您的问题.
使用 nginx 反向代理了 kubepi 后,Terminal 没任何反应。需要改怎么去设置这个ws请求的代理呢?
目前我关于rootws的请求配置是这样的:

upstream kubepi {
    server 10.1.0.1:9980;
}
map $http_upgrade $connection_upgrade {
  default upgrade;
  '' close;
}
server{
...
    location /kubepi/webkubectl/rootws {
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;
        proxy_set_header Host $host;
        proxy_set_header Cookie $http_cookie;
        proxy_pass http://kubepi;
    }
}
@zyy2477
Copy link
Author

zyy2477 commented Aug 24, 2024

/kubepi/webkubectl/root 的 Terminal 没反应。kubepi/dashboard/terminal 的 Terminal 没配置 ws 反向代理也能使用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants