My server for go.pedge.io. The redirects are hardcoded into data/data.go so if you want to use this, you'll need to fork the project. SSL is set up on a load balancer in front of this with Elastic Beanstalk.
- Set up your AWS environment variables.
brew install aws-elasticbeanstalk
- Go to Elastic Beanstalk settings, set SYSLOG_NETWORK and SYSLOG_ADDRESS if you have an endpoint.
- Route53 -> Create Hosted Zone
- GoDaddy -> Update nameservers with servers from NS in Route53
- Route53 -> Hosted Zone -> Create Record Set -> yourdomain.com, Type A, Alias Yes, Alias Target is your EB Load Balancer
- StartSSL -> Get a certificate, validate your domain (probably need firstname.lastname@example.org, Zoho can help)
aws iam upload-server-certificate --server-certificate-name go-yourdomain-com-startssl --certificate-body file:///$(pwd)/ssl.crt --private-key file:///$(pwd)/ssl.key --certificate-chain file:///$(pwd)/chain.crt --path /goyourdomaincomstartssl/
- Elastic Beanstalk -> Configuration -> Load Balancing -> HTTPS stuff