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.
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: