docker-registry-ui icon indicating copy to clipboard operation
docker-registry-ui copied to clipboard

Support for context path in Kubernetes running behind Traefik Load Balancer

Open gamodg opened this issue 1 year ago • 1 comments

I want to serve registry-gui from the context path /registry

If I can use a setting in helm chart that allows setting the context-path.

Tried Traefik with StripPrefix middleware but getting 404 for css and js files

Helm Chart values.yml

ui:
    title: "Local Registry"
    proxy: true
    deleteImages: true
    ingress:
      enabled: true
      path: /registry
      ingressClassName: traefik
      annotations:
        kubernetes.io/ingress.class: traefik
        traefik.ingress.kubernetes.io/router.entrypoints: web
        traefik.ingress.kubernetes.io/rule-type: PathPrefixStrip

https://artifacthub.io/packages/helm/joxit/docker-registry-ui Setting ui.ingress.path to /registry but its not working

gamodg avatar Jan 18 '24 01:01 gamodg

Hi, I'm using relative path in the project exactly for this reason. Try with /registry/ (with dangling slash)

      path: /registry/

Joxit avatar Jan 24 '24 22:01 Joxit