Proxy issue - Parse error: Unknown directive 'transparent'

I’m trying to set up a transparent caddy proxy that load balances across 4 backends.

But, it feels like the proxy middleware isn’t loaded or something, I get these errors:
Parse error: Unknown directive ‘transparent’
Parse error: Unknown directive ‘policy’

Here is the Caddyfile:

proxy / localhost:8080 localhost:8081 localhost:8082 localhost:8083 {
  tls off
  policy round_robin

I downloaded the standard Caddy build from the website, no extra options checked.

The first line of the Caddyfile is always the address of the site to serve: The Caddyfile — Caddy Documentation

tls off does not go in the proxy directive, it must go outside.

That should help.

That did the trick. Thanks for the fast answer and sorry for not RTFM. :slight_smile:

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