Domain:
Current Setup:
Alibaba cloud Ubuntu 18.04 instance:
- Nginx Reverse Proxy
- Certbot
- Docker (Hosting Python Flask Web Server on Port 3389)
The idea was to use Nginx + certbot as a reverse proxy to encrypt and relay all traffic to and from the python server in the Docker container. But after setting it up, when I entered the website, it redirects to port 3389 which isn't secure. So it redirects the traffic but doesn't encrypt it. However SSL Labs shows that there is SSL
I followed this guide: https://www.scaleway.com/en/docs/how-to-configure-nginx-reverse-proxy/
I only edited 2 files - nginx.conf and reverse-proxy.conf
xxxxx:/etc/nginx/site-available$ cat reverse-proxy.conf
server {
listen 443;
listen [::]:443;
access_log /var/log/nginx/reverse-access.log;
error_log /var/log/nginx/reverse-error.log;
location / {
proxy_pass http://127.0.0.1:3389;
}
}
I'm not entirely sure if my conf settings are wrong or if the entire system design isn't correct. Would appreciate assistance.
Thanks in advance!