-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi-gateway-production.yml
92 lines (92 loc) · 3.11 KB
/
api-gateway-production.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
logging:
level:
root: WARN
org.springframework.web: INFO
org.springframework.cloud.gateway: DEBUG
reactor.netty.http.client: DEBUG
org.springframework.security: DEBUG
org.springframework.security.oauth2: DEBUG
server:
port: 8090
base-url: http://www.tamky.xyz:${server.port}
eureka:
client:
serviceUrl:
defaultZone: http://eureka0-service:8761/eureka/
keycloak-client:
server-url: '{cipher}e1e5a1ddf8af26a44ffca2d8633ec5ac5e3a08467594ca4cffedb03cb9e2c8a79943d19f9751020fc78d4af79aa3cd52'
realm: mydev
spring:
application:
name: api-gateway
security:
oauth2:
client:
registration:
keycloak:
provider: keycloak
client-id: api-gateway
client-secret: T7OuUKKsJMnrPOyn5CgfYcKr2QuuNi8I
authorization-grant-type: authorization_code
redirect-uri: ${base-url}/login/oauth2/code/keycloak
scope: openid
provider:
keycloak:
authorization-uri: ${keycloak-client.server-url}/realms/${keycloak-client.realm}/protocol/openid-connect/auth
token-uri: ${keycloak-client.server-url}/realms/${keycloak-client.realm}/protocol/openid-connect/token
user-info-uri: ${keycloak-client.server-url}/realms/${keycloak-client.realm}/protocol/openid-connect/userinfo
jwk-set-uri: ${keycloak-client.server-url}/realms/${keycloak-client.realm}/protocol/openid-connect/certs
user-name-attribute: name
user-info-authentication-method: header
resourceserver:
jwt:
jwk-set-uri: ${keycloak-client.server-url}/realms/${keycloak-client.realm}/protocol/openid-connect/certs
issuer-uri: ${keycloak-client.server-url}/realms/${keycloak-client.realm}
cloud:
gateway:
globalcors:
corsConfigurations:
'[/**]':
allowedOrigins: "*"
allowedHeaders: "*"
allowedMethods:
- GET
- POST
- DELETE
- PUT
- PATCH
- OPTIONS
add-to-simple-url-handler-mapping: true
routes:
- id: egis0-service
uri: lb://egis0-service
predicates:
- Path=/egis0-api/**
- Method=GET,POST,DELETE,PUT,PATCH,OPTIONS
filters:
- TokenRelay=
- RemoveRequestHeader=Cookie
- id: jd0-service
uri: lb://jd0-service
predicates:
- Path=/jd0-api/**
- Method=GET,POST,DELETE,PUT,PATCH,OPTIONS
filters:
- TokenRelay=
- RemoveRequestHeader=Cookie
- id: prot0-service
uri: lb://prot0-service
predicates:
- Path=/prot0-api/**
- Method=GET,POST,DELETE,PUT,PATCH,OPTIONS
filters:
- TokenRelay=
- RemoveRequestHeader=Cookie
- id: prot0-service-info
uri: lb://prot0-service
predicates:
- Path=/prot0-api/info
- id: prot0-service-health
uri: lb://prot0-service
predicates:
- Path=/prot0-api/health