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

Add route prefix for reverse proxy #8

Open
April-Q opened this issue Dec 16, 2021 · 0 comments
Open

Add route prefix for reverse proxy #8

April-Q opened this issue Dec 16, 2021 · 0 comments
Assignees

Comments

@April-Q
Copy link

April-Q commented Dec 16, 2021

If Kubediag is behind a reverse proxy, particularly one where Kubediag is not at the root, this doesn't work so well.
For example, I have Nginx installed with the following configuration:

http {
 server {
   listen 0.0.0.0:30066;
   location /kubediag/ {
     proxy_pass http://localhost:9090/kubediag/;
   }
 }
}
events {
}

This configuration would serve Kubediag up on http://localhost:30066/kubediag/, and Nginx will include the /kubediag/ prefix when passing on requests to Kubediag. To make this work we should enable route prefix feature which will allow to control this more granularly:

kubediag-dashboard --web.route-prefix=/kubediag
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