瀏覽代碼

http->https redirect

Josh Bicking 2 年之前
父節點
當前提交
e8b1f8e372
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      traefik-helmchartconfig.yaml

+ 2 - 0
traefik-helmchartconfig.yaml

@@ -21,6 +21,8 @@ spec:
       - "--entrypoints.websecure.http.tls.certResolver=letsencrypt"
       - "--entrypoints.websecure.http.tls.domains[0].main=jibby.org"
       - "--entrypoints.websecure.http.tls.domains[0].sans=*.jibby.org"
+      - "--entrypoints.web.http.redirections.entryPoint.to=:443"
+      - "--entrypoints.web.http.redirections.entrypoint.scheme=https"
 
       - "--log.level=DEBUG"
       # debug, uncomment for testing