Hi, I'm trying to configure traefik for gitlab. I'd like to make traefik route trafic for mygitlab.com with one domain and for registry.mygitlam.com fot the "registry" service. I thought this configuration would do:
labels:
traefik.enable: true
traefik.http.routers.hg-web.rule: Host(`hg.mix.dev`)
traefik.http.routers.hg-web.entrypoints: web
traefik.http.routers.hg-web.middlewares: redirect-to-https
traefik.http.middlewares.redirect-to-https.redirectscheme.scheme: https
traefik.http.routers.hg-secured.rule: Host(`hg.mix.dev`)
traefik.http.routers.hg-secured.entrypoints: web-secured
traefik.http.routers.hg-secured.tls.certresolver: leresolver
traefik.http.routers.hg-secured.tls: true
traefik.http.services.hg-secured.loadbalancer.server.port: 80
traefik.http.routers.registry-ssl.rule: Host(`registry.mix.dev`)
traefik.http.routers.registry-ssl.entrypoints: web-secured
traefik.http.routers.registry-ssl.service: registry
traefik.http.routers.registry-ssl.tls.certresolver: leresolver
traefik.http.routers.registry-ssl.tls: true
traefik.http.services.registry.loadbalancer.server.port: 5000
but in fact the last part (registry) hides the first one that is working correctly when alone.
In my view 'registry.mix.dev' is a new router with it's own configuration that points to a different seervice and should not interfere with the other one.
What is wrong whith this idea? Dashboard clearly shows the last definition prevails and hides hg.mix.dev.
Thanks in advance