Set Domain
Set the
KHOJ_DOMAIN environment variable to your remotely accessible IP or domain via shell or docker-compose.yml.Examples:Secure Your Installation
- Ensure the Khoj Admin password and
KHOJ_DJANGO_SECRET_KEYenvironment variable are securely set. - Setup Authentication.
SSL Configuration
Disable HTTPS (Not Recommended)
To disable HTTPS, set theKHOJ_NO_HTTPS environment variable to True. This can be useful if Khoj is only accessible behind a secure, private network.
Using Tailscale for Remote Access
You can use Tailscale for easy, secure access to your self-hosted Khoj over the network.
Configure Domain
Set
KHOJ_DOMAIN to your machine’s Tailscale IP or FQDN on tailnet.