gateway: Active bucket forwarding handler (#14277)
A regression removed support of federation in the gateway mode. Enable it again. Federation is deprecated for a while but let's fix this for the time being.
This commit is contained in:
@@ -251,6 +251,11 @@ func StartGateway(ctx *cli.Context, gw Gateway) {
|
|||||||
// Add API router.
|
// Add API router.
|
||||||
registerAPIRouter(router)
|
registerAPIRouter(router)
|
||||||
|
|
||||||
|
// Enable bucket forwarding handler only if bucket federation is enabled.
|
||||||
|
if globalDNSConfig != nil && globalBucketFederation {
|
||||||
|
globalHandlers = append(globalHandlers, setBucketForwardingHandler)
|
||||||
|
}
|
||||||
|
|
||||||
// Use all the middlewares
|
// Use all the middlewares
|
||||||
router.Use(globalHandlers...)
|
router.Use(globalHandlers...)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user