-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathapplication.yaml
139 lines (136 loc) · 3.79 KB
/
application.yaml
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
spring:
web:
resources:
static-locations: "file:static/" #for dev file:./target/static/ for docker static/
webflux:
static-path-pattern: "/**" # https://github.com/spring-cloud/spring-cloud-gateway/issues/1339
application:
name:
fmtok8s-frontend
cloud:
gateway:
#filter: #https://cloud.spring.io/spring-cloud-gateway/reference/html/#the-secureheaders-gatewayfilter-factory
# filter:
# secure-headers:
# enabled: true
# default-filters:
# - SecureHeaders
# - TokenRelay=
# - RemoveRequestHeader=Cookie
# httpclient:
# wiretap: true
# httpserver:
# wiretap: true
routes:
- id: agenda
uri: ${FRONTEND_AGENDA_SERVICE:http://fmtok8s-agenda}
predicates:
- Path=/agenda/**
filters:
- RewritePath=/agenda/(?<id>.*), /$\{id}
- name: CircuitBreaker
args:
name: agendaCircuitBreaker
fallbackUri: forward:/api/agendaNotAvailable
- id: c4p
uri: ${FRONTEND_C4P_SERVICE:http://fmtok8s-c4p}
predicates:
- Path=/c4p/**
filters:
- RewritePath=/c4p/(?<id>.*), /$\{id}
- name: CircuitBreaker
args:
name: c4pCircuitBreaker
fallbackUri: forward:/api/c4pNotAvailable
- id: email
uri: ${FRONTEND_EMAIL_SERVICE:http://fmtok8s-email}
predicates:
- Path=/email/**
filters:
- RewritePath=/email/(?<id>.*), /$\{id}
- name: CircuitBreaker
args:
name: c4pCircuitBreaker
fallbackUri: forward:/api/emailNotAvailable
- id: speakers
uri: ${FRONTEND_SPEAKERS_SERVICE:http://fmtok8s-speakers}
predicates:
- Path=/speakers/**
filters:
- RewritePath=/speakers/(?<id>.*), /$\{id}
- id: sponsors
uri: ${FRONTEND_SPONSORS_SERVICE:http://fmtok8s-sponsors}
predicates:
- Path=/sponsors/**
filters:
- RewritePath=/sponsors/(?<id>.*), /$\{id}
- id: tickets
uri: ${FRONTEND_TICKETS_SERVICE:http://tickets-service}
predicates:
- Path=/tickets/**
filters:
- RewritePath=/tickets/(?<id>.*), /$\{id}
- id: payments
uri: ${FRONTEND_PAYMENTS_SERVICE:http://payments-service.default.svc.cluster.local}
predicates:
- Path=/payments/**
filters:
- RewritePath=/payments/(?<id>.*), /$\{id}
- AddResponseHeader=X-Frame-Options, SAMEORIGIN
- id: queue
uri: ${FRONTEND_QUEUE_SERVICE:http://queue-service.default.svc.cluster.local}
predicates:
- Path=/queue/**
filters:
- RewritePath=/queue/(?<id>.*), /$\{id}
- id: broker
uri: ${K_SINK:http://broker-ingress.knative-eventing.svc.cluster.local}
predicates:
- Path=/broker/**
filters:
- RewritePath=${K_SINK_POST_FIX:/broker/, /default/default}
# security:
# oauth2:
# client:
# registration:
# oidc:
# scope:
# - openid
management:
endpoints:
web:
exposure:
include: "*"
endpoint:
loggers:
enabled: true
info:
enabled: true
show-details: always
gateway:
enabled: true
show-details: always
health:
probes:
enabled: true
enabled: true
show-details: always
group:
liveness:
include: livenessState
show-details: always
readiness:
include: readinessState
show-details: always
logging:
level:
reactor:
netty: INFO
org:
springframework:
cloud:
gateway: DEBUG
com:
salaboy:
conferences:
site: INFO