langserve icon indicating copy to clipboard operation
langserve copied to clipboard

SSL support for Langserve

Open amir1m opened this issue 1 year ago • 1 comments

Hello, I have langserve deployment working on HTTP however would like to serve on HTTPS end point. How can we enable support for SSL in Langserve?

Thanks.

amir1m avatar Apr 23 '24 07:04 amir1m

LangServe only adds endpoints to an existing Fast API app. So it's more of a question of how to add https to a fast api application rather than langserve.

Fast API docs: https://fastapi.tiangolo.com/deployment/https/

When deploying with uvicorn you can add certificates like this: https://www.uvicorn.org/deployment/

eyurtsev avatar Apr 25 '24 15:04 eyurtsev