Authentication & reverse proxy mode?

1. Caddy version (caddy version):


2. How I run Caddy:

I would like to use Caddy as a reverse proxy.

a. System environment:


b. Command:

just an example: caddy reverse-proxy --to --auth username_here pwd_here

c. Service/unit/compose file:

paste full file contents here

d. My complete Caddyfile or JSON config:

paste config here, replacing this text
use `caddy fmt` to make it readable
DO NOT REDACT anything except credentials
or helpers will be sad

3. The problem I’m having:

I would like to know if Caddy supports authentication in reverse proxy mode?

4. Error messages and/or full log output:

5. What I already tried:

6. Links to relevant resources:

Yes, but you’ll need to use a Caddyfile. The caddy reverse-proxy command is only for the simplest of usecases. {
	basicauth {
		user hashed_password

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