Setup Nginx, Apache or some other web proxy server with SSLΒΆ

You need to configure your webserver to act as a reverse proxy that forwards all traffic from port 443 (the https port) to 127.0.0.0:8002.

The webserver must use SSL, and it should redirect traffic from port 80 to port 443.

Refer to the Gunicorn documentation for more information.