mirror of
https://github.com/minio/minio.git
synced 2025-05-21 09:33:50 -04:00
fix: initialize reverse proxy forwarder with right public certs (#17080)
This commit is contained in:
parent
b09fe0e50e
commit
dbd53af369
@ -59,7 +59,6 @@ import (
|
|||||||
"github.com/minio/minio/internal/auth"
|
"github.com/minio/minio/internal/auth"
|
||||||
"github.com/minio/minio/internal/color"
|
"github.com/minio/minio/internal/color"
|
||||||
"github.com/minio/minio/internal/config"
|
"github.com/minio/minio/internal/config"
|
||||||
"github.com/minio/minio/internal/handlers"
|
|
||||||
"github.com/minio/minio/internal/kms"
|
"github.com/minio/minio/internal/kms"
|
||||||
"github.com/minio/minio/internal/logger"
|
"github.com/minio/minio/internal/logger"
|
||||||
"github.com/minio/pkg/certs"
|
"github.com/minio/pkg/certs"
|
||||||
@ -133,16 +132,6 @@ func init() {
|
|||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
globalForwarder = handlers.NewForwarder(&handlers.Forwarder{
|
|
||||||
PassHost: true,
|
|
||||||
RoundTripper: NewHTTPTransportWithTimeout(1 * time.Hour),
|
|
||||||
Logger: func(err error) {
|
|
||||||
if err != nil && !errors.Is(err, context.Canceled) {
|
|
||||||
logger.LogIf(GlobalContext, err)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
console.SetColor("Debug", fcolor.New())
|
console.SetColor("Debug", fcolor.New())
|
||||||
|
|
||||||
gob.Register(StorageErr(""))
|
gob.Register(StorageErr(""))
|
||||||
|
@ -43,6 +43,7 @@ import (
|
|||||||
"github.com/minio/minio/internal/bucket/bandwidth"
|
"github.com/minio/minio/internal/bucket/bandwidth"
|
||||||
"github.com/minio/minio/internal/color"
|
"github.com/minio/minio/internal/color"
|
||||||
"github.com/minio/minio/internal/config"
|
"github.com/minio/minio/internal/config"
|
||||||
|
"github.com/minio/minio/internal/handlers"
|
||||||
"github.com/minio/minio/internal/hash/sha256"
|
"github.com/minio/minio/internal/hash/sha256"
|
||||||
xhttp "github.com/minio/minio/internal/http"
|
xhttp "github.com/minio/minio/internal/http"
|
||||||
"github.com/minio/minio/internal/logger"
|
"github.com/minio/minio/internal/logger"
|
||||||
@ -252,6 +253,16 @@ func serverHandleCmdArgs(ctx *cli.Context) {
|
|||||||
globalInternodeTransport = NewInternodeHTTPTransport()()
|
globalInternodeTransport = NewInternodeHTTPTransport()()
|
||||||
globalRemoteTargetTransport = NewRemoteTargetHTTPTransport()()
|
globalRemoteTargetTransport = NewRemoteTargetHTTPTransport()()
|
||||||
|
|
||||||
|
globalForwarder = handlers.NewForwarder(&handlers.Forwarder{
|
||||||
|
PassHost: true,
|
||||||
|
RoundTripper: NewHTTPTransportWithTimeout(1 * time.Hour),
|
||||||
|
Logger: func(err error) {
|
||||||
|
if err != nil && !errors.Is(err, context.Canceled) {
|
||||||
|
logger.LogIf(GlobalContext, err)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
// On macOS, if a process already listens on LOCALIPADDR:PORT, net.Listen() falls back
|
// On macOS, if a process already listens on LOCALIPADDR:PORT, net.Listen() falls back
|
||||||
// to IPv6 address ie minio will start listening on IPv6 address whereas another
|
// to IPv6 address ie minio will start listening on IPv6 address whereas another
|
||||||
// (non-)minio process is listening on IPv4 of given port.
|
// (non-)minio process is listening on IPv4 of given port.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user