marella / chatdocs

Chat with your documents offline using AI.
MIT License
684 stars 99 forks source link

Running chatdocs ui on headless server #32

Closed silvernailj closed 1 year ago

silvernailj commented 1 year ago

I'm attempting to run this on a headless server (Ubuntu 22.04) where I have considerably more resources, and can't get internet access to it. I've attempted to modify the IP/Port numbers on the chatdocs.yml, tried modifying the ui.py, nothing. Keeps returning the

local firewalls are disabled and the device is reachable via Ping.

Any suggestions?

drewzeee commented 1 year ago

I'm here for guidance on this as well

marella commented 1 year ago

I just released a new version 0.2.5 which adds host and auth options.

Add the following to chatdocs.yml to allow access via network:

host: 0.0.0.0

To connect, you should use the public IP of your server instead of localhost: http://SERVER_IP:5000

But this is not secure as it allows public access, so you can also add auth: true to chatdocs.yml which generates a random authenticated URL to access the UI.

For more security, you can limit your server/port access to your local machine's IP e.g. using security groups if you are using AWS.