generated from digitalservicebund/java-application-template
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtraefik.yaml
36 lines (33 loc) · 830 Bytes
/
traefik.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
http:
routers:
backend:
rule: "PathPrefix(`/api`) || PathPrefix(`/actuator`) || PathPrefix(`/login`) || PathPrefix(`/logout`) || PathPrefix(`/oauth`)"
service: backend
middlewares:
- test-compress
frontend:
rule: "PathPrefix(`/`)"
service: frontend
middlewares:
- test-compress
services:
backend:
loadBalancer:
servers:
- url: "http://localhost:8080"
frontend:
loadBalancer:
servers:
- url: "http://localhost:3000"
middlewares:
test-compress:
compress:
defaultEncoding: gzip
encodings: gzip
includedContentTypes:
- application/json
- application/javascript
- text/css
- text/html
- text/plain
- text/javascript