Skip to content

Redirect traffic from port 80 to 443

License

Notifications You must be signed in to change notification settings

sensiblecodeio/https-redirect

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static binary to redirect HTTP to HTTPS

Example usage for the first release

$ curl -sSOL https://github.com/sensiblecodeio/https-redirect/releases/download/v0.1/https-redirect
$ echo "4d6f6521830c30b9cd515b5b902f6cf5eccd69164ef67c6b7f00c4982ba46638  https-redirect" | sha256sum -c
https-redirect: OK
$ chmod +x ./https-redirect
$ setcap 'cap_net_bind_service=+ep' ./https-redirect

Instant run with docker

See dit4c's very small docker image.

docker run -d --name https-redirect -p 80:3000 dit4c/https-redirect

About

Redirect traffic from port 80 to 443

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 66.5%
  • Dockerfile 17.1%
  • Makefile 16.4%