Hey Guys,
trying to run a FastAPI Python web service, but cannot get the ssl working, cause uvicorn requires the ssl key and certificate. Where can I find them ?
Hi there,
Thanks for reaching out.
The certificate provided by Render is not available to use in your code. Your web server code/config should be set up to respond to http
not https
. TLS termination is handled before an http
request is then proxied to your running instance.
It’s also worth checking your code uses host 0.0.0.0
and a non-standard port (not 80
/443
, etc.) the default is 10000
and is available in the PORT
environment variable.
Hope that helps
Alan
Thank you for the quick reply!
It says ‘attempting to bind 0.0.0.0 and 1000 permission denied’
You’re missing a 0
. 10000
, maybe it’s easier to just use the PORT
environment variable?
Alan
(post deleted by author)
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.