-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathapplication.yml
More file actions
84 lines (83 loc) · 2.33 KB
/
application.yml
File metadata and controls
84 lines (83 loc) · 2.33 KB
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
server:
port: 5300
error:
path: /error
gateway:
backend:
url: http://backend:5800
frontend:
url: http://frontend:5810
grafana:
url: http://grafana:9100
sandbox:
url: http://sandbox:5400
management:
endpoints:
web:
exposure:
include: health,info,prometheus,gateway
spring:
profiles:
default: dev
cloud:
gateway:
routes:
- id: api_route
uri: ${gateway.backend.url}
predicates:
- Path=/api/**
filters:
# If SESSION cookie is passed to downstream, it is then removed, because downstream discards it
- RemoveRequestHeader=Cookie
- ConvertAuthorizationHeader=
- id: index_route
uri: ${gateway.frontend.url}/index.html
predicates:
- Path=/
filters:
# If SESSION cookie is passed to downstream, it is then removed, because downstream discards it
- RemoveRequestHeader=Cookie
- id: error_route
uri: ${gateway.backend.url}/error
predicates:
- Path=/error
- id: resource_route
uri: ${gateway.frontend.url}
predicates:
- Path=/*.html,/*.js*,/*.css,/img/**,/*.ico,/*.png
filters:
# If SESSION cookie is passed to downstream, it is then removed, because downstream discards it
- RemoveRequestHeader=Cookie
- id: grafana
uri: ${gateway.grafana.url}
predicates:
- Path=/grafana/**
- id: sandbox-api_route
uri: ${gateway.sandbox.url}
predicates:
- Path=/sandbox/api/**
filters:
# If SESSION cookie is passed to downstream, it is then removed, because downstream discards it
- RemoveRequestHeader=Cookie
- ConvertAuthorizationHeader=
---
spring:
config:
activate:
on-profile: kubernetes
gateway:
grafana:
url: http://save-cloud-grafana:9100
---
spring:
config:
activate:
on-profile: prod
security:
oauth2:
client:
provider:
github:
# value that will work with GitHub API, where GitHub provides username as "login" in the response
# https://docs.github.com/en/rest/reference/users#get-the-authenticated-user
user-name-attribute: login