Https on local network

Hello,

I just would like to ask for confirmation that my settings are correct.

I have an exist address eg.: pfsense.home.foo.com and traefik created a cert for that. I added a new middleware config:

http:
  middlewares:
    local-ssl:
      IPAllowList:
        sourceRange:
          - "192.168.1.0/24"

And I use this in composefile yaml config in my container setup:

labels:
 - "traefik.enable=true"

 - "traefik.http.routers.pfsense.tls=true"
 - "traefik.http.routers.pfsense.tls.certresolver=prod"
 - "traefik.http.routers.pfsense.rule=Host(`pfsense.home.foo.com`)"
 - "traefik.http.routers.pfsense.middlewares=local-ssl@file" <<--HERE
 - "traefik.http.routers.pfsense.entrypoints=websecure"

So traefik created a cert for this address and only accessible on my local network. I tested and it is working well I just want confirmation that I'm not doing anything wrong or dangerous.

Thank you,

Looks ok, you have an entrypoint with a router with security middleware. You just need to make sure you use providers.file in Traefik static config to load the middleware.

1 Like