mirror of https://github.com/minio/minio.git
				
				
				
			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:
		
							parent
							
								
									8ae46bce93
								
							
						
					
					
						commit
						1f18efb0ba
					
				| 
						 | 
				
			
			@ -251,6 +251,11 @@ func StartGateway(ctx *cli.Context, gw Gateway) {
 | 
			
		|||
	// Add API 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
 | 
			
		||||
	router.Use(globalHandlers...)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue