1. Caddy version:
v2.6.3 h1:QRVBNIqfpqZ1eJacY44I6eUC1OcxQ8D04EKImzpj7S8= (caddy-l4 actually)
2. How I installed, and run Caddy:
Temporary fetched with
$ xcaddy build --with github.com/mholt/caddy-l4
a. System environment:
Ubuntu 18.04.6
b. Command:
./caddy proxy.json
c. Service/unit/compose file:
none yet
d. My complete Caddy config:
none yet
3. The problem I’m having:
I need to proxy a “regular” http connection to a backend server, which is accessible only via an http proxy. I know this is not possible via standard caddy server, and I found this variation, which should manage this config, if I understand correctly.
Unfortunately, I cannot find additional documentation other than README, and I cannot read Go code, so at first I was wondering if this is actually possible.
4. Error messages and/or full log output:
none yet
5. What I already tried:
The closest sample config I found on the README is the IMAP ssl proxy example. But I don’t understand how to configure the upstream connection via proxy.
Using cURL, I have to connect this way:
curl -x 10.1.1.12:8080 https://destination.host.com