mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-08 05:39:13 +00:00
Add standlone khoj_domain for allowed_hosts
This commit is contained in:
@@ -30,7 +30,7 @@ DEBUG = in_debug_mode()
|
|||||||
|
|
||||||
# All Subdomains of KHOJ_DOMAIN are trusted
|
# All Subdomains of KHOJ_DOMAIN are trusted
|
||||||
KHOJ_DOMAIN = os.getenv("KHOJ_DOMAIN", "khoj.dev")
|
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 = [
|
CSRF_TRUSTED_ORIGINS = [
|
||||||
f"https://*.{KHOJ_DOMAIN}",
|
f"https://*.{KHOJ_DOMAIN}",
|
||||||
|
|||||||
Reference in New Issue
Block a user