if no ingestor then connect to oneuptime

This commit is contained in:
Simon Larsen 2023-10-13 19:49:20 +01:00
parent 2d99850596
commit 0453d995ba
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
2 changed files with 3 additions and 3 deletions

View File

@ -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=<probe-key> -e PROBE_ID=<probe-id> -e PROBE_API_URL=https://oneuptime.com -d oneuptime/probe:release
docker run --name oneuptime-probe --network host -e PROBE_KEY=<probe-key> -e PROBE_ID=<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

View File

@ -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 (