You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running Khoj docker compose stack on a server on my local network, have all the env variables setup but visiting /server/admin route throws a 400 Bad Request error. The logs show the following error:
DisallowedHost: Invalid HTTP_HOST
header: '10.0.0.197:42110'. You may
need to add '10.0.0.197' to
ALLOWED_HOSTS.
There seems to be no way to add a environment variable for setting allowed hosts.
To Reproduce
Steps to reproduce the behavior:
Run Khoj docker compose stack on a server on your network
Hey @techieanant , I'm assuming you can't access it over localhost?
You must have used the docker-compose.yml sample file to scaffold you Khoj instance. You can use that to set the environment variable KHOJ_DOMAIN. There are some notes about that here: https://docs.khoj.dev/get-started/setup/#setup-notes.
Hi folks, I was able to verify that the latest Khoj run via Docker does not hit the CSRF or the Bad Request (400) issue when accessing the admin panel. As previously mentioned you need to set the KHOJ_DOMAIN environment variable to resolve the Bad Request issue.
I've also simplified the Docker setup in #919, so configuring Khoj via the admin panel isn't necessary to start using self hosted Khoj.
Do try the latest docker-compose.yml and Khoj docker image to see if the issue is resolved for you? You can see the new Remote Access Doc and the updated Self Hosting Setup Docs if you're still stuck.
And let me know if you're still hitting the issue, where/how you're running Khoj and client or server console logs to help debug this?
Describe the bug
I'm running Khoj docker compose stack on a server on my local network, have all the env variables setup but visiting
/server/admin
route throws a 400 Bad Request error. The logs show the following error:There seems to be no way to add a environment variable for setting allowed hosts.
To Reproduce
Steps to reproduce the behavior:
Screenshots
Platform
If self-hosted
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: