-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Override headers for presignedUrl #1232
Comments
have you checked the
|
The idea is that I'd be after some interface into the library to define the I tried setting the Canonical request:
The canonical request is using the |
Hi,
I'm looking to use presignedUrl with the ability to change the host/port the function generates. Our Minio instance runs internally behind a proxy. The endpoint we provide to the library is the internal hostname which means that presigned URLs are also generated using that.
This wouldn't be such a problem if the Host header wasn't signed, as we could just swap it out -- however it is, and I don't see any interface to override this header when signing a URL besides what's inferred from the endpoint.
Minio server:
minio.acme.internal
Reverse proxy:
acme.org/bucket
(proxy strips path)What I would like to see returned is:
Is there an option I'm missing that can override the
Host
header and mutate the URL this way? If not, would it be feasible to add one?I would think either something like a
publicEndPoint
option on the instance, or a way to pass headers into thepresignedUrl
function to be passed ontogetRequestOptions
.minio-js/src/minio.js
Line 1243 in 16dcbbf
and/or
Apologies if I've missed anything, but this is what I think it might look like from my scan over the source.
Cheers.
The text was updated successfully, but these errors were encountered: