A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
fix: Rename the proxy settings such that they don't interfer with other requests
Mohamed Bassem1da8b458adf2
diff --git a/docs/docs/03-configuration.md b/docs/docs/03-configuration.mdindex 54a077b5..aba02e16 100644--- a/docs/docs/03-configuration.md+++ b/docs/docs/03-configuration.md@@ -191,9 +191,9 @@ If your Karakeep instance needs to connect through a proxy server, you can confi| Name | Required | Default | Description || ----------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------- |-| HTTP_PROXY | No | Not set | HTTP proxy server URL for outgoing HTTP requests (e.g., `http://proxy.example.com:8080`) |-| HTTPS_PROXY | No | Not set | HTTPS proxy server URL for outgoing HTTPS requests (e.g., `http://proxy.example.com:8080`) |-| NO_PROXY | No | Not set | Comma-separated list of hostnames/IPs that should bypass the proxy (e.g., `localhost,127.0.0.1,.local`) |+| CRAWLER_HTTP_PROXY | No | Not set | HTTP proxy server URL for outgoing HTTP requests (e.g., `http://proxy.example.com:8080`) |+| CRAWLER_HTTPS_PROXY | No | Not set | HTTPS proxy server URL for outgoing HTTPS requests (e.g., `http://proxy.example.com:8080`) |+| CRAWLER_NO_PROXY | No | Not set | Comma-separated list of hostnames/IPs that should bypass the proxy (e.g., `localhost,127.0.0.1,.local`) |:::infoThese proxy settings will be used by the crawler and other components that make outgoing HTTP requests.diff --git a/packages/shared/config.ts b/packages/shared/config.tsindex 634bf564..97467289 100644--- a/packages/shared/config.ts+++ b/packages/shared/config.ts@@ -129,9 +129,9 @@ const allEnv = z.object({PAID_QUOTA_ASSET_SIZE_BYTES: z.coerce.number().optional(),// Proxy configuration- HTTP_PROXY: z.string().optional(),- HTTPS_PROXY: z.string().optional(),- NO_PROXY: z.string().optional(),+ CRAWLER_HTTP_PROXY: z.string().optional(),+ CRAWLER_HTTPS_PROXY: z.string().optional(),+ CRAWLER_NO_PROXY: z.string().optional(),});const serverConfigSchema = allEnv@@ -249,9 +249,9 @@ const serverConfigSchema = allEnvnumWorkers: val.WEBHOOK_NUM_WORKERS,},proxy: {- httpProxy: val.HTTP_PROXY,- httpsProxy: val.HTTPS_PROXY,- noProxy: val.NO_PROXY,+ httpProxy: val.CRAWLER_HTTP_PROXY,+ httpsProxy: val.CRAWLER_HTTPS_PROXY,+ noProxy: val.CRAWLER_NO_PROXY,},assetPreprocessing: {numWorkers: val.ASSET_PREPROCESSING_NUM_WORKERS,