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

Updated the paths for .js and .css to not be absolute paths #146

Merged
merged 1 commit into from
Jun 13, 2020

Conversation

FrozenInc
Copy link
Contributor

This makes it possible for the paths to be found behind a reverse proxy. As right now if a webserver takes care of the url paths and puts kafdrop some place else than /, kafdrop will not be able to find the .css and .js files as it uses absolute paths /js and /css.
By switching over to ./js and ./css, kafdrop will be able to handle paths behind a reverse proxy.

…hey can be found when kafdrop is behind a reverse proxy
@ekoutanov ekoutanov merged commit b9b45e4 into obsidiandynamics:master Jun 13, 2020
@pankti11
Copy link

pankti11 commented Apr 4, 2021

Hey @FrozenInc ,
This does not seem to work. kafdrop works behind the proxy only with root url not with the subpath.

ingress configuration:

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: kafdrop-ui
  namespace: ix
  annotations:
   ingress.kubernetes.io/rewrite-target: /
spec:
  rules:
    - http:
        paths:
        - backend:
            serviceName: kafdropui
            servicePort: 80
          path: /kafdrop/

image

Any help with the configuration will be a great help. Thanks you !

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

Successfully merging this pull request may close these issues.

3 participants