mirror of
https://github.com/minio/minio.git
synced 2025-11-28 05:04:14 -05:00
web: Add targetProto for putObjectURL,getObjectURL SSL requests.
Currently the default request was based on the 'minio server' SSL configuration. But inside a proxy this is invalid browser needs to send which protocol it wishes the PresignedURL should be generated for.
This commit is contained in:
@@ -52,7 +52,6 @@ type webAPI struct {
|
||||
Client minio.CloudStorageClient
|
||||
|
||||
// private params.
|
||||
inSecure bool // Enabled if TLS is false.
|
||||
apiAddress string // api destination address.
|
||||
// accessKeys kept to be used internally.
|
||||
accessKeyID string
|
||||
@@ -130,7 +129,6 @@ func initWeb(conf cloudServerConfig) *webAPI {
|
||||
FSPath: conf.Path,
|
||||
AccessLog: conf.AccessLog,
|
||||
Client: client,
|
||||
inSecure: inSecure,
|
||||
apiAddress: conf.Address,
|
||||
accessKeyID: conf.AccessKeyID,
|
||||
secretAccessKey: conf.SecretAccessKey,
|
||||
|
||||
Reference in New Issue
Block a user