I try to configure my registry service to intercep host+path https://my-dns.org/registry and redirect to the service http://registry-ui
here is configured my compose :
...
registry-ui:
image: joxit/docker-registry-ui:latest
container_name: registry-ui
restart: unless-stopped
environment:
- REGISTRY_TITLE=My registry
- NGINX_PROXY_PASS_URL=http://registry:5000
- SINGLE_REGISTRY=true
- DELETE_IMAGES=true
depends_on:
- registry
labels:
- "traefik.enable=true"
- "traefik.http.routers.registry-ui.entrypoints=https"
- "traefik.http.routers.registry-ui.rule=Host(`my-dns.org`) && PathPrefix(`/registry`)"
- "traefik.http.routers.registry-ui.middlewares=test-stripprefix"
- "traefik.http.routers.registry-ui.tls.certresolver=myresolver"
- "traefik.http.middlewares.test-stripprefix.stripprefix.prefixes=/registry"
- "traefik.http.middlewares.test-stripprefix.stripprefix.forceSlash=false"
- "traefik.http.services.registry-ui.loadbalancer.server.port=80"
...
As a result, the index page works fine, but css, js and favicon are lost because the requests look like :
https://my-dns.org/docker-registry-ui.cssinstead ofhttps://my-dns.org/registry/docker-registry-ui.css
Any idea on how to fix that ?