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 1a69e11 commit 8152d9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ services:
image: containous/whoami
restart: always
labels:
#- "traefik.http.routers.whoami.rule=Host(`whoami.jiahangchun.icu`)"
# 指定host
- "traefik.http.routers.whoami.rule=Host(`whoami.jiahangchun.icu`)"
# 开启 tls
- "traefik.http.routers.whoami.tls=true"
# 只允许通过端口1443访问
Expand Down
1 change: 0 additions & 1 deletion traefik.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ providers:
watch: true
#500毫秒超时 未相应配置
httpClientTimeout: 500
defaultRule: "Host(`{{ {{ normalize .Name }}.jiahangchun.icu`)"
file:
watch: true
directory: /etc/traefik/config
Expand Down

0 comments on commit 8152d9d

Please sign in to comment.