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.

Posted January 12, 2022 77 views

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 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.

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.

Submit an Answer
1 answer

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:

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:


by Brian Boucheron
Let's Encrypt is a Certificate Authority (CA) that provides an easy way to obtain and install free TLS/SSL certificates, thereby enabling encrypted HTTPS on web servers. It simplifies the process by providing a software client, Certbot, that attempts to automate most (if not all) of the required steps. In this tutorial, you will use Certbot to obtain a free SSL certificate for Nginx on Ubuntu 20.04, and set up your certificate to renew automatically.