I’m running Caddy as a proxy in front of an artifactory server. The config below worked find for Caddy 8.2:
https://chocolatey.eng.foobar.io {
proxy / http://artifactory.foobar.corp.msp:8081/artifactory/api/nuget/chocolatey-virtual {
proxy_header Host {host}
}
log /var/log/caddy/chocolatey-proxy.log
tls /etc/lego/certificates/chocolatey.eng.foobar.io.crt /etc/lego/certificates/chocolatey.eng.foobar.io.key
}
Now we are getting this error on startup:
# caddy --conf=/etc/Caddyfile
Activating privacy features... done.
2016/07/20 03:47:34 strconv.ParseInt: parsing "8081/artifactory/api/nuget/chocolatey": invalid syntax
If I remove the path portion of the URL ("/artifactory/api/nuget/chocolatey-virtual") the config works.
Apologies if I’m missing a release note, or am misunderstanding the documentation. But how do I specify a path into the destination endpoint? Is this even supported?