From e1bf1f0e862c4398d3eec9358d119f26ec44cd8d Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Sat, 18 Nov 2023 16:14:35 -0800 Subject: [PATCH] Update default Khoj server URL to Khoj cloud on Emacs, Obsidian clients --- src/interface/emacs/khoj.el | 4 ++-- src/interface/obsidian/src/main.ts | 2 +- src/interface/obsidian/src/settings.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/interface/emacs/khoj.el b/src/interface/emacs/khoj.el index c4cbf698..a5dea456 100644 --- a/src/interface/emacs/khoj.el +++ b/src/interface/emacs/khoj.el @@ -63,7 +63,7 @@ ;; Khoj Static Configuration ;; ------------------------- -(defcustom khoj-server-url "http://localhost:42110" +(defcustom khoj-server-url "https://app.khoj.dev" "Location of Khoj API server." :group 'khoj :type 'string) @@ -94,7 +94,7 @@ :type 'number) (defcustom khoj-api-key nil - "API Key to Khoj server." + "API Key to your Khoj. Default at https://app.khoj.dev/config#clients." :group 'khoj :type 'string) diff --git a/src/interface/obsidian/src/main.ts b/src/interface/obsidian/src/main.ts index 9f0560e8..26b0a5a1 100644 --- a/src/interface/obsidian/src/main.ts +++ b/src/interface/obsidian/src/main.ts @@ -75,7 +75,7 @@ export default class Khoj extends Plugin { if (this.settings.khojUrl === "https://app.khoj.dev") { if (this.settings.khojApiKey === "") { - new Notice(`❗️Khoj API key is not configured. Please visit https://app.khoj.dev to get an API key.`); + new Notice(`❗️Khoj API key is not configured. Please visit https://app.khoj.dev/config#clients to get an API key.`); return; } diff --git a/src/interface/obsidian/src/settings.ts b/src/interface/obsidian/src/settings.ts index d9473e4a..9150c438 100644 --- a/src/interface/obsidian/src/settings.ts +++ b/src/interface/obsidian/src/settings.ts @@ -13,7 +13,7 @@ export interface KhojSetting { export const DEFAULT_SETTINGS: KhojSetting = { resultsCount: 6, - khojUrl: 'http://127.0.0.1:42110', + khojUrl: 'https://app.khoj.dev', khojApiKey: '', connectedToBackend: false, autoConfigure: true,