srobo / infrastructure

Obsolete. Provisions the base infrastructure in DigitalOcean
MIT License
0 stars 0 forks source link

No redirection from plain-http to secure https #1

Closed PeterJCLaw closed 5 years ago

PeterJCLaw commented 5 years ago
$ curl -i http://studentrobotics.org
curl: (7) Failed to connect to studentrobotics.org port 80: Connection refused

Prior to the move to this incarnation of our infrastructure this used to work, but now fails.

jimmythompson commented 5 years ago

I would expect that to be handled by this:

https://github.com/srobo/infrastructure/blob/master/src/load_balancer.tf#L12

Weird.

PeterJCLaw commented 5 years ago

Yeah, I too had assumed that that line would do this.

jimmythompson commented 5 years ago
Screenshot 2019-07-23 at 22 18 48
PeterJCLaw commented 5 years ago
$ curl -i http://www.studentrobotics.org
HTTP/1.1 307 Temporary Redirect
Cache-Control: no-cache
Content-length: 0
Location: https://www.studentrobotics.org/

:tada:

Shame it's 307 as this should be a permanent redirect, also that it's manual in the UI, but oh well.