Question

My Flask App (essentially a static website) on a Ubuntu VPS droplet doesn't load half the time on my desktop, but will on my mobile phone.

I followed the tutorial How to Deploy a Flask Application on an Ubuntu VPS from the digitalocean community tutorials and I got it to work. It’s a single HTML file, single CSS file, and one main.py file. I had a bit of trouble with the DNS but I have the nameservers pointing to digitalocean. In my DNS records I have a type A record with the hostname as my URL and it directs to my IPV4 with a 3600 TTL. I have 3 NS records with the hostname as my URL and the value it directs to are the ns1,ns2,and ns3 digitalocean nameservers with a TTL of 1800.

Furthermore, my SSL certificate does not work and I got it through Digitalocean Settings > Security > Certificates.


Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

Could you confirm what is the exact error that you get when your website stops working? In case you’ve made the DNS change just recently, it could be due to DNS cache.

You could try checking your DNS via this site here:

https://www.whatsmydns.net/

You should see green ticks for most of the checks.

Regarding the SSL certificate, the one that you see at Settings > Security > Certificates is a managed certificate and is used only for managed services like Load Balancers and Spaces.

In case you want to install an SSL on your Droplet, you could use Nginx with Let’s Encrypt as described here:

https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04

Best, Bobby