khromov
(Stanislav Khromov)
March 1, 2017, 4:44pm
1
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
transparent
policy round_robin
}
I downloaded the standard Caddy build from the website, no extra options checked.
matt
(Matt Holt)
March 1, 2017, 4:57pm
2
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.
khromov
(Stanislav Khromov)
March 1, 2017, 5:08pm
3
That did the trick. Thanks for the fast answer and sorry for not RTFM.
system
(system)
Closed
May 30, 2017, 5:10pm
4
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.