dolittle-platform / Home

0 stars 0 forks source link

Fix HTTP -> HTTPS redirect in Traefik #81

Closed einari closed 6 years ago

einari commented 6 years ago

We want to redirect everything from HTTP to HTTPS. It depends on having #83 fixed

We're expecting the redirect to be permanent (301) - we can live with a 302, but prefer 301.

We need confirmation that the SMS Eagle with Red Cross will work redirecting

The best way to confirm the redirect is to use the wgetCLI tool - it will show exactly what is going on.

The redirect config in traefik.toml file could be something like below:

 [entryPoints]
  [entryPoints.http]
  address = ":80"
    [entryPoints.http.redirect]
    entryPoint = "https"  
  [entryPoints.https]
  address = ":443"
    [entryPoints.https.tls]