feat: add ssl support using custom key/cert files
Someone on the discord asked for a way to run the app behind https, so I added a run config parameters to accept keyfile and cert paths, and pass them to uvicorn.
I was unable to run commit hooks on this, nor did I test, but putting this here to see if anyone can validate or pick it up from here.
@dahifi if I add those changes to my local, I it will work? or is incomplete ? the added parameters must be provided as environment vars or running paremeters in chainlit executable ?
Best regards!
Thanks for your PR, there is a similar one here: https://github.com/Chainlit/chainlit/pull/905
Do you have more background as to why folks who want to create a publicly accessible Chainlit instance without having a proxy in front of it?
in my case the reverse proxy + chainlit + serving wasm artifacts didnt liked it to iOS devices, so I have solved appliying this PR and removing the nginx reverse proxy for serving the ssl and works fine.... and its a clearer solution for lite infrastructure use cases.
Thanks for your PR, there is a similar one here: #905
Do you have more background as to why folks who want to create a publicly accessible Chainlit instance without having a proxy in front of it?
localhost
@dahifi Same request, thanks man, good job. Waiting for the merge.
@tpatel This merge is quite useful when running the voice feature of chainlit. Could you check if it's ready to merge? If there's a simple document of --ssl-cert etc on the repo main page, that would be very useful.
Thanks!
closing in favor of https://github.com/Chainlit/chainlit/pull/1047 (I've made the change there).