Hi,
I do have a traefik +authentik instance.
On another server, I’ve an home-assistant server, which needs to connect to one of the docker image using authentik. It’s a specific service(EVCC) and a specific home-assistant integration, that doesn’t support auth.
Here is the relevant configuration:
http:
routers:
evcc:
rule: Host(`evcc.xxx.yyy`)
entrypoints: websecure
service: evcc
middlewares:
- force-secure
- middlewares-authentik
services:
evcc:
loadbalancer:
servers:
- url: http://192.168.0.30:7070
middlewares:
force-secure:
redirectscheme:
scheme: https
permanent: true
middlewares-authentik:
forwardAuth:
address: "http://192.168.0.30:7080/outpost.goauthentik.io/auth/traefik"
trustForwardHeader: true
authResponseHeaders:
- X-authentik-username
- X-authentik-groups
- X-authentik-email
- X-authentik-name
- X-authentik-uid
- X-authentik-jwt
- X-authentik-meta-jwks
- X-authentik-meta-outpost
- X-authentik-meta-provider
- X-authentik-meta-app
- X-authentik-meta-version
My wish is that every connection that comes from my local network(and not my router which is on 192.168.0.1) should bypass the authentik middleware.
The thing is that I still need to access through evcc.xxx.yyy, so I’m not sure it’s really possible?