mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Add documentation for local setup and fix admin panel bugs
- Wasn't able to login to the admin panel when KHOJ_DEBUG was not True. Fix this error so self-hosted users can get unblocked from accessing the admin settings - Don't force users to set their KHOJ_DJANGO_SECRET_KEY
This commit is contained in:
parent
d587632700
commit
a5ffa2342f
3 changed files with 5 additions and 2 deletions
|
@ -186,6 +186,9 @@ To use the desktop client, you need to go to your Khoj server's settings page (h
|
||||||
1. Select files and folders to index [using the desktop client](./setup.md?id=_2-download-the-desktop-client). When you click 'Save', the files will be sent to your server for indexing.
|
1. Select files and folders to index [using the desktop client](./setup.md?id=_2-download-the-desktop-client). When you click 'Save', the files will be sent to your server for indexing.
|
||||||
- Select Notion workspaces and Github repositories to index using the web interface.
|
- Select Notion workspaces and Github repositories to index using the web interface.
|
||||||
|
|
||||||
|
|
||||||
|
> Note: Using Safari on Mac? You might not be able to login to the admin panel. Try using Chrome or Firefox instead.
|
||||||
|
|
||||||
### 4. Install Client Plugins (Optional)
|
### 4. Install Client Plugins (Optional)
|
||||||
Khoj exposes a web interface to search, chat and configure by default.<br />
|
Khoj exposes a web interface to search, chat and configure by default.<br />
|
||||||
The optional steps below allow using Khoj from within an existing application like Obsidian or Emacs.
|
The optional steps below allow using Khoj from within an existing application like Obsidian or Emacs.
|
||||||
|
|
|
@ -36,7 +36,7 @@ CSRF_TRUSTED_ORIGINS = [
|
||||||
]
|
]
|
||||||
|
|
||||||
COOKIE_SAMESITE = "None"
|
COOKIE_SAMESITE = "None"
|
||||||
if DEBUG:
|
if DEBUG or os.getenv("KHOJ_DOMAIN") == None:
|
||||||
SESSION_COOKIE_DOMAIN = "localhost"
|
SESSION_COOKIE_DOMAIN = "localhost"
|
||||||
CSRF_COOKIE_DOMAIN = "localhost"
|
CSRF_COOKIE_DOMAIN = "localhost"
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -341,7 +341,7 @@ def load_content(
|
||||||
search_models: SearchModels,
|
search_models: SearchModels,
|
||||||
):
|
):
|
||||||
if content_config is None:
|
if content_config is None:
|
||||||
logger.warning("🚨 No Content configuration available.")
|
logger.debug("🚨 No Content configuration available.")
|
||||||
return None
|
return None
|
||||||
if content_index is None:
|
if content_index is None:
|
||||||
content_index = ContentIndex()
|
content_index = ContentIndex()
|
||||||
|
|
Loading…
Reference in a new issue