ipfs / infra

Tools and systems for the IPFS community
MIT License
133 stars 41 forks source link

Redirect HTTP to HTTPS on dweb.link #477

Closed lidel closed 5 years ago

lidel commented 5 years ago

HTTPS was added in https://github.com/ipfs/infra/issues/391, and HSTS header is set correctly so all the following HTTP requests get upgraded to HTTPS :ok_hand:

$ curl -Is https://bafkreigh2akiscaildcqabsyg3dfr6chu3fgpregiymsck7e7aqa4s52zy.ipfs.dweb.link/
HTTP/2 200      
(...)
strict-transport-security: max-age=31536000; includeSubDomains; preload

However, if the very first request goes over HTTP, it ends with 404:

$ curl -Is http://bafkreigh2akiscaildcqabsyg3dfr6chu3fgpregiymsck7e7aqa4s52zy.ipfs.dweb.link/
HTTP/1.1 404 Not Found

Let's redirect to https:// to remove any surprises. :bomb:

scout commented 5 years ago

Will do! sorry about that.

scout commented 5 years ago

Done.