My traefik is splitted into 4 entrypoints: http, https, http-external and https-external.
Some services are only accessible locally, other are also accessible externally.
For the local services I access them using myservice.home.
For the services accessible externally, url is myservice.mydomain.com.
For the services that are accessible both locally and externally, is it possible to have both urls? So that I can access them locally but also externally when needed.
Here are my labels for a service I'm accessing externally:
- traefik.enable=true
- traefik.http.routers.myservice.entrypoints=http-external
- traefik.http.routers.myservice.rule=Host(`myservice.mydomain.com`)
- traefik.http.middlewares.myservice-https-redirect.redirectscheme.scheme=https
- traefik.http.routers.myservice.middlewares=myservice-https-redirect
- traefik.http.routers.myservice-secure.entrypoints=https-external
- traefik.http.routers.myservice-secure.rule=Host(`myservice.mydomain.com`)
- traefik.http.routers.myservice-secure.tls=true
- traefik.http.routers.myservice-secure.service=myservice
- traefik.http.services.myservice.loadbalancer.server.port=1234
- traefik.docker.network=external_proxy
I need to add my http entrypoint and also needs to add the myservice.home host but not sure how to do it and if it's possible.
