diff --git a/jupyterhub/templates/proxy/autohttps/_configmap-dynamic.yaml b/jupyterhub/templates/proxy/autohttps/_configmap-dynamic.yaml index a9d5d7a69c..336724d2aa 100644 --- a/jupyterhub/templates/proxy/autohttps/_configmap-dynamic.yaml +++ b/jupyterhub/templates/proxy/autohttps/_configmap-dynamic.yaml @@ -22,6 +22,7 @@ http: # A middleware to redirect to https redirect: redirectScheme: + permanent: true scheme: https # A middleware to add a X-Scheme (X-Forwarded-Proto) header that # JupyterHub's Tornado web-server needs if expecting to serve https @@ -69,7 +70,6 @@ http: entrypoints: - "http" middlewares: - - "hsts" - "redirect" rule: PathPrefix(`/`) service: default