mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 13:18:18 +00:00
Include resend as a default dependency, rather than restricting to prod
This commit is contained in:
@@ -11,23 +11,6 @@ By default, most of the instructions for self-hosting Khoj assume a single user,
|
||||
Remove the `--anonymous-mode` flag from your khoj start up command or docker-compose file to enable authentication.
|
||||
:::
|
||||
|
||||
For either of these methods, you'll need to use the prod version of the Khoj package. You can install it as below:
|
||||
|
||||
<Tabs groupId="server" queryString>
|
||||
<TabItem value="docker" label="Docker">
|
||||
Update your `docker-compose.yml` to use the prod image
|
||||
```bash
|
||||
image: ghcr.io/khoj-ai/khoj-cloud:latest
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="pip" label="Pip">
|
||||
```bash
|
||||
pip install khoj[prod]
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Using Magic Links
|
||||
The most secure way to do this is to integrate with [Resend](https://resend.com).
|
||||
|
||||
@@ -62,6 +45,23 @@ It's still possible to use the magic links feature without Resend, but you'll ne
|
||||
|
||||
## Using Google OAuth
|
||||
|
||||
For this method, you'll need to use the prod version of the Khoj package. You can install it as below:
|
||||
|
||||
<Tabs groupId="server" queryString>
|
||||
<TabItem value="docker" label="Docker">
|
||||
Update your `docker-compose.yml` to use the prod image
|
||||
```bash
|
||||
image: ghcr.io/khoj-ai/khoj-cloud:latest
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="pip" label="Pip">
|
||||
```bash
|
||||
pip install khoj[prod]
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
To set up your self-hosted Khoj with Google Auth, you need to create a project in the Google Cloud Console and enable the Google Auth API.
|
||||
|
||||
To implement this, you'll need to:
|
||||
|
||||
Reference in New Issue
Block a user