In Caddy 1, we were able to use
proxy / https://host.com/path
To reverse to a host+path.
I encountered the same error as this issue:
But I couldn’t understand the conclusion of the issue.
My use case is the following. I have a an Object Storage/S3 bucket at OVH. It is available at this URL:
An object is available at:
With this config for
proxy / https://storage.de.cloud.ovh.net/v1/<id>
The users of my app were able to access it as
With Caddy 2, I can’t specify a pass for
My Caddy will proxy
/v1/<id> is missing and
<id> has to stay private so I can’t update my app to add it in the user-facing URL: Caddy has to add it.
Is there a directive for Caddy 2 that allows me to do that?
rewrite maybe? I searched the documentation but couldn’t find anything.