-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathapplication.yml
53 lines (52 loc) · 1.4 KB
/
application.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
management:
tracing:
sampling:
probability: 1.0
endpoints:
web:
exposure:
include: prometheus
spring:
application:
name: gateway
zipkin:
base-url: http://localhost:9411
sender:
type: web
cloud:
gateway:
routes:
- id: path_route
uri: http://127.0.0.1:8082
predicates:
- Path=/v1/books
- id: path_route
uri: http://127.0.0.1:8082
predicates:
- Path=/v1/books/{segment}
- id: path_route
uri: http://127.0.0.1:8081
predicates:
- Path=/v1/isbns
# SECURITY CONFIGURATION TO BE APPLIED (remove comments to apply it)
# security:
# oauth2:
# client:
# registration:
# login-client:
# provider: authz
# client-id: gateway
# client-secret: secret3
# authorization-grant-type: client_credentials
# redirect-uri-template: "{baseUrl}/"
# scope: gateway
# provider:
# authz:
# authorization-uri: http://localhost:8009/oauth2/authorize
# token-uri: http://localhost:8009/oauth2/token
# user-info-uri: http://localhost:8009/oauth2/userinfo
# user-name-attribute: sub
# jwk-set-uri: http://localhost:8009/oauth2/token_keys
# resourceserver:
# jwt:
# jwk-set-uri: http://localhost:8009