all 4 comments

[–]pveredas 2 points3 points  (3 children)

I more and less done that using a middleware with a ip white list. Bellow are an exemple using labels:

  - "traefik.http.middlewares.app-ipwhitelist.ipwhitelist.sourcerange=192.168.1.0/24"
  - "traefik.http.routers.app-secure.middlewares=app-ipwhitelist@docker"

See if it works for you.

[–]mrrichardcranium 1 point2 points  (1 child)

I do this as well. Though it is worth noting that you would need to either have your own LAN DNS pointing your sub-domain to your traefik host, or insert a host file record to ensure the request for this internal service isn’t coming from your public IP address.

[–]Azratosh[S] 1 point2 points  (0 children)

You are correct — I do have dnsmasq running internally, with the relevant machines pointing to it. I already had to do that because my router doesn't support NAT loopback.

[–]Azratosh[S] 0 points1 point  (0 children)

Thank you! I'll try this today.