Authentication & reverse proxy mode?

1. Caddy version (caddy version):

Latest.

2. How I run Caddy:

I would like to use Caddy as a reverse proxy.

a. System environment:

Centos.

b. Command:

just an example: caddy reverse-proxy --to 127.0.0.1:9000 --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.

example.com {
	basicauth {
		user hashed_password
	}
	reverse_proxy 127.0.0.1:9000
}

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