Merge branch 'main' of http://th.local.t-aaron.com:13000/sunpeng/oidc-gateway-demo
This commit is contained in:
parent
a2a2be6f12
commit
cc24b6d884
|
|
@ -1,3 +1,4 @@
|
||||||
{
|
{
|
||||||
"java.configuration.updateBuildConfiguration": "automatic"
|
"java.configuration.updateBuildConfiguration": "automatic",
|
||||||
|
"java.compile.nullAnalysis.mode": "automatic"
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
server.port=8080
|
||||||
|
|
||||||
|
spring.cloud.gateway.routes[0].id=resource-server-a
|
||||||
|
spring.cloud.gateway.routes[0].uri=http://localhost:8081
|
||||||
|
spring.cloud.gateway.routes[0].predicates[0]=Path=/a/**
|
||||||
|
spring.cloud.gateway.routes[0].filters[0]=RewritePath=/a/(?<segment>.*), /api/${segment}
|
||||||
|
spring.cloud.gateway.routes[0].filters[1]=TokenRelay
|
||||||
|
|
||||||
|
spring.cloud.gateway.routes[1].id=resource-server-b
|
||||||
|
spring.cloud.gateway.routes[1].uri=http://localhost:8082
|
||||||
|
spring.cloud.gateway.routes[1].predicates[0]=Path=/b/**
|
||||||
|
spring.cloud.gateway.routes[1].filters[0]=RewritePath=/b/(?<segment>.*), /api/${segment}
|
||||||
|
spring.cloud.gateway.routes[1].filters[1]=TokenRelay
|
||||||
|
|
||||||
|
spring.security.oauth2.resourceserver.jwt.jwk-set-uri=http://localhost:9000/oauth2/jwks
|
||||||
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
server.port=8081
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue