Skip to content

Commit

Permalink
tls
Browse files Browse the repository at this point in the history
  • Loading branch information
jiahangchun committed May 12, 2024
1 parent 2570465 commit 0d54766
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ services:
image: containous/whoami
restart: always
labels:
- "traefik.http.routers.whoami.rule=Host(`whoami.jiahangchun.icu`)"
#- "traefik.http.routers.whoami.rule=Host(`whoami.jiahangchun.icu`)"
# 开启 tls
- "traefik.http.routers.whoami.tls=true"
# 只允许通过端口1443访问
Expand Down
3 changes: 2 additions & 1 deletion traefik.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ ping:
entryPoint: "ping"

providers:
consulCatalog:
defaultRule: "Host(`{{ .Name }}.jiahangchun.icu`)"
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: true
defaultRule: "Host(`{{ .Name }}.jiahangchun.icu`)"
file:
watch: true
directory: /etc/traefik/config
Expand Down

0 comments on commit 0d54766

Please sign in to comment.