Skip to content

Commit

Permalink
fix loadbalance
Browse files Browse the repository at this point in the history
  • Loading branch information
MichiBaum committed Dec 15, 2023
1 parent 1650363 commit 36500e3
Showing 1 changed file with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package com.michibaum.gatewayservice

import com.michibaum.permission_library.Permissions
import org.springframework.cloud.gateway.route.RouteLocator
import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder
import org.springframework.cloud.gateway.route.builder.filters
import org.springframework.cloud.gateway.route.builder.routes
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
Expand All @@ -17,31 +15,27 @@ class RoutesConfiguration {
route {
host("admin.michibaum.ch")
// filters { AuthorizationPreFilter() } // Permissions.Admin_Service.CAN_SEND_REQUEST
uri("lb:admin-service")
}
route {
path("/admin")
uri("lb:admin-service")
uri("lb://admin-service")
}
route {
host("authentication.michibaum.ch")
// filters {}
uri("lb:authentication-service")
uri("lb://authentication-service")
}
route {
host("javadoc.michibaum.ch")
// filters { AuthorizationPreFilter() } // Permissions.JavaDoc_Service.CAN_READ
uri("lb:javadoc-service")
uri("lb://javadoc-service")
}
route {
host("registry.michibaum.ch")
// filters { AuthorizationPreFilter() }
uri("lb:registry-service")
uri("lb://registry-service")
}
route {
host("usermanagement.michibaum.ch")
// filters { AuthorizationPreFilter() }
uri("lb:usermanagement-service")
uri("lb://usermanagement-service")
}
route {
host("google.michibaum.ch")
Expand Down

0 comments on commit 36500e3

Please sign in to comment.