-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdynamic.yaml
More file actions
40 lines (35 loc) · 1.04 KB
/
dynamic.yaml
File metadata and controls
40 lines (35 loc) · 1.04 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
http:
routers:
other_application:
rule: "Host(`example.com`)"
entryPoints: ["websecure"]
service: "other_application-service"
tls:
certResolver: "cfresolver"
other_application-http:
rule: "Host(`example.com`)"
entryPoints: ["web"]
middlewares: ["https-redirect"]
service: "other_application-service"
other_application-www:
rule: "Host(`www.example.com`)"
entryPoints: ["web", "websecure"]
middlewares: ["redirect-www-to-other_application"]
tls:
certResolver: "cfresolver"
service: "other_application-service"
middlewares:
https-redirect:
redirectScheme:
scheme: "https"
permanent: true
redirect-www-to-other_application:
redirectRegex:
regex: "^https?://www\\.other_application\\.example\\.com(.*)"
replacement: "https://example.com${1}"
permanent: true
services:
other_application-service:
loadBalancer:
servers:
- url: "http://host.docker.internal:8000"