Add standlone khoj_domain for allowed_hosts

This commit is contained in:
sabaimran
2024-08-05 17:11:37 +05:30
parent e412ed3bcb
commit bafda233e2

View File

@@ -30,7 +30,7 @@ DEBUG = in_debug_mode()
# All Subdomains of KHOJ_DOMAIN are trusted
KHOJ_DOMAIN = os.getenv("KHOJ_DOMAIN", "khoj.dev")
ALLOWED_HOSTS = [f".{KHOJ_DOMAIN}", "localhost", "127.0.0.1", "[::1]"]
ALLOWED_HOSTS = [f".{KHOJ_DOMAIN}", "localhost", "127.0.0.1", "[::1]", f"{KHOJ_DOMAIN}"]
CSRF_TRUSTED_ORIGINS = [
f"https://*.{KHOJ_DOMAIN}",