How do setup a Python FastApi properly?

I've used Python Manager to add the project, but it somehow is not loading properly to the public. I also enabled the port on the security tab.

  • Typing in server address followed by the port does not work.
  • Typing in the host domain followed by the port also does not work.

Please advise.

Thanks in Advance.

    a year later

    hello, may it help
    FastApi can run with the worker uvicorn, i recommended to you run in gunicorn framework, and also, you change the gunicorn.conf, and change the worker with worker_class = 'uvicorn.workers.UvicornWorker' and save the config. if you want to running it with SSL, please declare the in gunicorn.conf
    keyfile = '/www/wwwroot/your_forder_domain/private.key'
    certfile = '/www/wwwroot/your_folder_domain/certificate.crt'

      aaP_dronedummy0 BIG THANKS!! it's work.

      fastapi
      uvicorn
      mysql.connector
      requests
      aiohttp