diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 609f83c..e184e91 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -27,6 +27,9 @@ http { ssl_certificate_key /certs/server.key; ssl_protocols TLSv1.2 TLSv1.3; + # Redirect plain HTTP requests to HTTPS + error_page 497 https://$host:$server_port$request_uri; + location / { proxy_pass http://127.0.0.1:5000; proxy_set_header Host $host;