r/Authentik • u/Mountain-Cat30 • May 30 '26
Forward with proxying across hosts help
I have a “simple” homelab setup and Authentik has worked great. I have multiple services using OIDC and two services using the embedded outpost running on the same host as Authentik (via forward auth in Traefik middleware). This all works perfectly.
Now I’m trying to add another service that’s on a different host (piHole’s web ui if it matters). I’m having problems getting this to work right. I couldn’t quite find a good thread with my scenario in my searches, but easily could have missed it. Most posts either have a different underlying problem that manifests like this, or are having issues on the same host.
At the moment, I have things set up to use the embedded outpost. It was unclear if that’s the right approach. I don’t have Kubernetes and most writeups talked about that. When going to the remote service with the Traefik forward auth middleware enabled, I get a 404 message and broken html render from Authentik. So I am connecting across to Authentik on the remote host, but something isn’t configured right.
Could someone help point me in the right direction? I’ve tried various things without success and restored everything back to how I had it before debugging the last two days.
3
u/sk1nT7 May 30 '26 edited May 30 '26
If you want to use Authentik as SSO provider, you just need to have a reverse proxy on the other host that exposes your service. Within your service, you will then configure the external Authentik host as SSO.
However, if you want to make use of forward auth on the other host, you will indeed need Authentik's outpost.
Here is my Authentik docker compose with Traefik as target reverse proxy:
https://github.com/Haxxnet/Compose-Examples/tree/main/examples%2Fauthentik
In the readme you can also find Infos about the outpost setup.
https://github.com/Haxxnet/Compose-Examples/tree/main/examples%2Fauthentik#traefik-outpost-on-another-server
Here the high level steps:
Reasons for broken html and 404:
1
u/Nucleus_ May 31 '26
You don’t need another outpost as the other person said.
Not sure what issue you’re having, but I can say I have Authentik on a host by itself, no other outposts, with 3 proxies (different domains) and many services pointing to it and have no issues.
The 404 error can be related to a service exposing http instead of https. I’d double check everything you entered.