Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

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!
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.
Accepted Answer
Turns out I needed to add a server block to nginx.conf and not just sites-available:
server {
listen 80;
server_name MYDOMAIN;
}
Running the process after that worked!
Hi @marketing8b7cf186d951e4e8d
In your server block, this is your problem server_name localhost;
That should be your domain, something like this:
server_name example.com www.example.com;
Then test Nginx and restart it by running this command:
sudo service nginx configtest
sudo service nginx restart
Then run certbot --nginx again and use example.com www.example.com as domain.