Skip to content

Commit

Permalink
Redirect all http to https
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Jan 13, 2020
1 parent 853659d commit 74546e9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions jupyterhub/templates/proxy/autohttps/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,20 @@ data:
filename = '/etc/traefik/dynamic.toml'
dynamic.toml: |
[http.middlewares]
[http.middlewares.redirect.redirectScheme]
scheme = "https"
[http.routers]
[http.routers.httpredirect]
rule = "PathPrefix(`/`)"
service = "chp"
entrypoints = ["http"]
middlewares = ["redirect"]
[http.routers.chp]
rule = "PathPrefix(`/`)"
entrypoints = ["https"]
service = "chp"
[http.routers.chp.tls]
certResolver = "le"
Expand Down

0 comments on commit 74546e9

Please sign in to comment.