aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/docs/03-configuration.md6
-rw-r--r--packages/shared/config.ts12
2 files changed, 9 insertions, 9 deletions
diff --git a/docs/docs/03-configuration.md b/docs/docs/03-configuration.md
index 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`) |
:::info
These 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.ts
index 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 = allEnv
numWorkers: 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,