Hi!
I followed the tutorial here: https://www.digitalocean.com/community/tutorials/how-to-deploy-a-go-web-application-with-docker-and-nginx-on-ubuntu-18-04
I am getting 502 Bad Gateway for https and (lately) 301 Moved Permanently for http.
The container runs fine locally. I tested my domain by starting a simple nginx server, connects perfectly. I disabled the firewall to make sure that was not blocking anything.
Any ideas where to look next? I did follow the tutorial to the T and even started a new instance and did it again.
Thanks for any help!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there @pantero,
I’ve just tested the tutorial and it seems to be working well with HTTPS as well, however, note that in the case you receive an error about invalid TLS certificates, wait a few minutes for the Let’s Encrypt add-on to provision the certificates.
If you are still getting errors, can you share your go-app-compose.yaml file here?
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.