From 86e95f99fff3b43853f060a51682732e05a9caf2 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Mon, 1 Sep 2025 12:52:50 +0100 Subject: [PATCH] feat: Add PROXY_URL configuration option for probe and update example env file --- Probe/Config.ts | 2 ++ config.example.env | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/Probe/Config.ts b/Probe/Config.ts index df281f884c..c661e6bc59 100644 --- a/Probe/Config.ts +++ b/Probe/Config.ts @@ -84,3 +84,5 @@ export const PROBE_MONITOR_RETRY_LIMIT: number = process.env[ export const PORT: Port = new Port( process.env["PORT"] ? parseInt(process.env["PORT"]) : 3874, ); + +export const PROXY_URL: string | null = process.env["PROXY_URL"] || null; diff --git a/config.example.env b/config.example.env index 91ce1a6992..3018acc48b 100644 --- a/config.example.env +++ b/config.example.env @@ -177,6 +177,8 @@ GLOBAL_PROBE_1_ONEUPTIME_URL=http://localhost GLOBAL_PROBE_1_SYNTHETIC_MONITOR_SCRIPT_TIMEOUT_IN_MS=60000 GLOBAL_PROBE_1_CUSTOM_CODE_MONITOR_SCRIPT_TIMEOUT_IN_MS=60000 GLOBAL_PROBE_1_PORT=3874 +# (Optional) If you want to use a proxy for the probe, then you can set the proxy URL here. For example, if you're using a proxy server like Caddy or Nginx, then you can set the proxy URL here. +GLOBAL_PROBE_1_PROXY_URL= GLOBAL_PROBE_2_NAME="Probe-2" GLOBAL_PROBE_2_DESCRIPTION="Global probe to monitor oneuptime resources" @@ -186,6 +188,8 @@ GLOBAL_PROBE_2_ONEUPTIME_URL=http://localhost GLOBAL_PROBE_2_SYNTHETIC_MONITOR_SCRIPT_TIMEOUT_IN_MS=60000 GLOBAL_PROBE_2_CUSTOM_CODE_MONITOR_SCRIPT_TIMEOUT_IN_MS=60000 GLOBAL_PROBE_2_PORT=3875 +# (Optional) If you want to use a proxy for the probe, then you can set the proxy URL here. For example, if you're using a proxy server like Caddy or Nginx, then you can set the proxy URL here. +GLOBAL_PROBE_2_PROXY_URL= SMS_DEFAULT_COST_IN_CENTS= CALL_DEFAULT_COST_IN_CENTS_PER_MINUTE=