How to use https? for Flask+gunicorn

deploy the Flask project using gunicorn on the remote Linux/Ubuntu server, but not using Nginx for the time being. For the Baidu Cloud domain name bought by
, I applied for a free SSL certificate. There are three files downloaded with the extension .cer / .key / .crt . How to set up https ? Is there a specific doc or manual? Thanks!

Feb.28,2021

refer to https://stackoverflow.com/que.,

add the parameter (path to the certificate) directly to the gunicorn command

gunicorn --certfile=server.crt --keyfile=server.key --bind 0.0.0.0:443 test:app

Menu