I decided to move to an Ubuntu server. I installed Ngnix and Certbot and I have a certificate now. However this shows up instead of my website: 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
Does anyone know what I need to change in the nginx default file? (shown in the pastebin link)
I have a website https://onlineaudioconverter.net/ where the user can upload audio and video files to convert them. The 100MB upload limit can be a problem. The only way to bypass the limit (without paying for a paid account) is if I stop using CloudFlare. So I’ve been trying to get https outside of CloudFlare.
My website uses Python+Flask in the backend. It’s running on an Amazon AWS server (Windows Server 2019).
I’ve tried sslforfree.com and zerossl.com and I’m told to create the directory .well-known\win-acme in the web root and then download and put a file there (which has no file extension and contains a bunch of random characters). https://i.imgur.com/gW0wH5R.png (steps 2 and 3).
Not sure what the web root is. I’m assuming it’s where my main.py is so I created a folder in the same directory as main.py called “.well-known” and a subfolder called “acme-challenge”. I put the file in that folder and proceeded to step 5 (visiting the URL they provide):
But I get the following error: https://i.imgur.com/r01qMlc.png
The URL that it tries to access is: http://onlineaudioconverter.net/.well-known/acme-challenge/[the name of that file]
I’m assuming it doesn’t work because things work differently in Flask and simply creating the directories with that file in it is not sufficient. Perhaps I need to make an @app.route?