Skip to content

Commit 076ace8

Browse files
committed
add https redirect config
1 parent 5c9bf5e commit 076ace8

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

traefik/conf/bensonfx.yml

+11-14
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,22 @@ http:
3232
loadBalancer:
3333
servers:
3434
- url: "http://nas.example.com:5000"
35-
# [http.routers]
36-
# [http.routers.https-redirect]
37-
# entryPoints = ["http"]
38-
# rule = "HostRegexp(`{any:.*}`)"
39-
# middlewares = ["https-redirect"]
40-
# service = "noop"
35+
4136
routers:
42-
routers:
43-
https-redirect:
44-
entryPoints:
45-
- http
46-
rule: "HostRegexp(`{any:.*}`)"
47-
middlewares: ["https-redirect"]
48-
service: dummy
37+
https-redirect:
38+
entryPoints:
39+
- http
40+
rule: "HostRegexp(`{any:.*}`)"
41+
middlewares:
42+
- "https-redirect"
43+
service: dummy
4944
dashboard:
5045
entryPoints:
5146
- https
5247
service: api@internal
53-
middlewares: ["basic-auth", "https-redirect"]
48+
middlewares:
49+
- "basic-auth"
50+
# - "https-redirect"
5451
rule: "Host(`admin.example.com`)"
5552
tls: {}
5653
dsphoto:

0 commit comments

Comments
 (0)