diff --git a/Docs/Probe/CustomProbe.md b/Docs/Probe/CustomProbe.md index 7c7333c37e..4c64c13712 100644 --- a/Docs/Probe/CustomProbe.md +++ b/Docs/Probe/CustomProbe.md @@ -10,11 +10,11 @@ To begin with you need to create a custom probe in your Project Settings > Probe To run a probe, please make sure you have docker installed. You can run custom probe by: ``` -docker run --name oneuptime-probe --network host -e PROBE_KEY= -e PROBE_ID= -e PROBE_API_URL=https://oneuptime.com -d oneuptime/probe:release +docker run --name oneuptime-probe --network host -e PROBE_KEY= -e PROBE_ID= -e INGESTOR_URL=https://oneuptime.com -d oneuptime/probe:release ``` -If you are self hosting OneUptime, you can change `PROBE_API_URL` to your custom self hosted instance. +If you are self hosting OneUptime, you can change `INGESTOR_URL` to your custom self hosted instance. ### Verify diff --git a/Probe/Config.ts b/Probe/Config.ts index 5166df1742..b5ac19b470 100644 --- a/Probe/Config.ts +++ b/Probe/Config.ts @@ -7,7 +7,7 @@ if (!process.env['INGESTOR_URL']) { process.exit(); } -export let INGESTOR_URL: URL = URL.fromString(process.env['INGESTOR_URL']); +export let INGESTOR_URL: URL = URL.fromString(process.env['INGESTOR_URL'] || 'https://oneuptime.com'); // If probe api does not have the path. Add it. if (