We use nexus3 as an artifact repository. There are also the docker registries. I want to proxy them so we dont need to use the port. There is an example for nginx but I am not able to get it to work for caddy.
4. Error messages and/or full log output:
Error during parsing: due to parsing difficulties, placeholders are not allowed when an upstream address contains a scheme
Ok it was not that complex as I thought.
Thats it I just created a new section and it works like a charm =)
On the nexus itself I configured a docker group that got all our docker-repos and the docker-hub (proxy) in it on port http 18082 if somebody needs that setup too =)
We only use http because we have a software defined network where all the caddy proxy stuff is running.
This will set the Host header to 10.64.192.106:8081.
Usually, the default behaviour of passing through the Host as-is, is what you want. These headers are typically only needed if you’re proxying to your upstream over HTTPS, as noted here: