Traefik 2 – Passing port in the URL

So I’m pretty sure I just need someone to break things down for me in a way I can understand.

I’m running traefik 2, with docker and some rule tomls for other internal services.

I am using HASSIO as on of these rules tomls, I want to be able to reach http://URL:1880/endpoint/ui for the node red integration.

if i browse to the internal address it works but it’s not working externally using the url.

the toml is as follows:

[http.routers]
  [http.routers.hassio-rtr]
      entryPoints = ["https"]
      rule = "Host(`REMOVED`)"
      service = "hassio-svc"
      middlewares = ["chain-no-auth"]
      [http.routers.hassio-rtr.tls]
        certresolver = "dns-cloudflare"

[http.services]
  [http.services.hassio-svc]
    [http.services.hassio-svc.loadBalancer]
      [http.services.hassio-svc.loadBalancer.hassio-svc]
        passHostHeader = false
        [[http.services.hassio-svc.loadBalancer.servers]]
          url = "http://192.168.0.38:8123"

my question is, can you have it so when you click a link in the site and it redirects to an address with a port in the URL that gets passed through?

Go to Source
Author: Nigel Tatschner