chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Making root-path configurable

Open yuezhaows opened this issue 2 years ago • 7 comments

similar with https://github.com/Chainlit/chainlit/issues/6

currently the root-path is not configurable.

make f/e use the configurable root-path

  • Read from Envs.
  • Read from Args

yuezhaows avatar Aug 14 '23 07:08 yuezhaows

This would be really awesome. I'm building some apps to run on a single subdomain, and configuring a root-path per app would be great

ArthurJahn avatar Oct 30 '23 19:10 ArthurJahn

That's very necessary for the application Im working with right now. I hope we have it any day soon

Italoalberto avatar Oct 30 '23 19:10 Italoalberto

Can you explain what the current behavior prevents you to do? That would be helpful.

willydouhard avatar Oct 30 '23 19:10 willydouhard

The docs says that

"Currently, you have to serve your Chainlit app from the root of your domain/subdomain. This means that you can’t serve it from a subdirectory like example.com/my-app."

So, I'd like to be able to serve the app from different base path, like setting a base tag or something.

ArthurJahn avatar Oct 30 '23 20:10 ArthurJahn

Okay so this is a different issue. This issue is about running the chainlit run command from a different level than the app file level.

willydouhard avatar Oct 30 '23 21:10 willydouhard

Ok, so I'll open another issue (#521)

ArthurJahn avatar Nov 01 '23 13:11 ArthurJahn

Hi. This type of issue also occurs when I'm looking to use chainlit within Sagemaker Studio and using's it's Jupyter URL proxy to redirect traffic to the port.

e.g. an initial request can be sent to https://.studio.ap-southeast-2.sagemaker.aws/jupyter/default/proxy/8505 URL where the base URL is Sagemaker and the proxy.

External dependencies (some CSS and the like) will be rendered, but the subsequent calls to then return 404 errors. urlissue

Would it be possible to set something so that Chainlit allows requests to be sent to '/jupyter/default/proxy/8505' or similar so that the requests can be served as needed.

DBairdME avatar Dec 01 '23 02:12 DBairdME