I’ve managed to get the certificate set up. However, iinstead of my website showing up, this shows up: https://i.imgur.com/qJgwZtG.png
Here’s a pastebin showing the contents of /etc/nginx/sites-available/default - https://pastebin.com/jJ8muBem
My Python Flask application is running on port 5000. The Flask application is in /home/ubuntu/website/ and the HTML files are in /home/ubuntu/website/templates
What do I need to change in the nginx default file?
Initially the port that Flask was using was 80. But during the installation of Nginx, it wanted port 80, so I changed the port of my Flask app to 5000. Perhaps I need to change the port back to 80? But the thing is, if I change the port to 80, when I try to run the Flask app as it will say that port 80 is already being used (by Nginx). I can kill the Nginx processes that are using port 80 but doesn’t Nginx need to be running for the SSL to work? To be honest, I don’t know how Nginx works. I’m very new to this.