mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-07 05:40:17 +00:00
Update default Khoj server URL to Khoj cloud on Emacs, Obsidian clients
This commit is contained in:
@@ -63,7 +63,7 @@
|
|||||||
;; Khoj Static Configuration
|
;; Khoj Static Configuration
|
||||||
;; -------------------------
|
;; -------------------------
|
||||||
|
|
||||||
(defcustom khoj-server-url "http://localhost:42110"
|
(defcustom khoj-server-url "https://app.khoj.dev"
|
||||||
"Location of Khoj API server."
|
"Location of Khoj API server."
|
||||||
:group 'khoj
|
:group 'khoj
|
||||||
:type 'string)
|
:type 'string)
|
||||||
@@ -94,7 +94,7 @@
|
|||||||
:type 'number)
|
:type 'number)
|
||||||
|
|
||||||
(defcustom khoj-api-key nil
|
(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
|
:group 'khoj
|
||||||
:type 'string)
|
:type 'string)
|
||||||
|
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ export default class Khoj extends Plugin {
|
|||||||
|
|
||||||
if (this.settings.khojUrl === "https://app.khoj.dev") {
|
if (this.settings.khojUrl === "https://app.khoj.dev") {
|
||||||
if (this.settings.khojApiKey === "") {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export interface KhojSetting {
|
|||||||
|
|
||||||
export const DEFAULT_SETTINGS: KhojSetting = {
|
export const DEFAULT_SETTINGS: KhojSetting = {
|
||||||
resultsCount: 6,
|
resultsCount: 6,
|
||||||
khojUrl: 'http://127.0.0.1:42110',
|
khojUrl: 'https://app.khoj.dev',
|
||||||
khojApiKey: '',
|
khojApiKey: '',
|
||||||
connectedToBackend: false,
|
connectedToBackend: false,
|
||||||
autoConfigure: true,
|
autoConfigure: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user