blob: 87493a0fd3cb1e68586ec6701d300934b088dcd5 (
plain)
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
|
# List of common application properties:
# https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#common-application-properties
server:
port: 9080
address: 0.0.0.0
logging:
level:
org.springframework.web: TRACE
management:
endpoints:
web:
exposure:
include: "*"
tracing:
enabled: true
sampling:
probability: 1.0 # sample every request
zipkin:
tracing:
endpoint: http://${COLLECTOR_HOST}:${COLLECTOR_PORT}/api/v2/spans
spring:
application:
name: bff
profiles:
include:
- access-control
security:
oauth2:
client:
provider:
keycloak:
token-uri: ${KEYCLOAK_URL}/auth/realms/${KEYCLOAK_REALM}/protocol/openid-connect/token
jwk-set-uri: ${KEYCLOAK_URL}/auth/realms/${KEYCLOAK_REALM}/protocol/openid-connect/certs
registration:
keycloak:
provider: keycloak
client-id: ${KEYCLOAK_CLIENT_ID}
client-secret: ${KEYCLOAK_CLIENT_SECRET}
authorization-grant-type: client_credentials
resourceserver:
jwt:
jwk-set-uri: ${KEYCLOAK_URL}/auth/realms/${KEYCLOAK_REALM}/protocol/openid-connect/certs
jackson:
serialization:
FAIL_ON_EMPTY_BEANS: false
bff:
realm: ${KEYCLOAK_REALM}
preferences-url: ${PREFERENCES_URL}
history-url: ${HISTORY_URL}
keycloak-url: ${KEYCLOAK_URL}
|