Is there an example of forward_auth using the JSON config?

Basically what’s in the title. I see the docs for the Caddyfile format but haven’t been able to locate it for the JSON config yet.

It’s particularly confusing because apparently there used to be a third party plugin for this which is now deprecated.

EDIT: I forgot caddy adapt was a thing. Based on the output, looks like I’ll have to set this up manually with rewrites and headers?

Yep, caddy adapt is the best way to get started with JSON config if you know what you’re trying to do with a Caddyfile.

Pretty much. The Caddyfile docs explains what the forward_auth config shortcut does forward_auth (Caddyfile directive) — Caddy Documentation, it’s essentially just a reverse_proxy with some defaults set up.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.