mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
if no ingestor then connect to oneuptime
This commit is contained in:
parent
2d99850596
commit
0453d995ba
@ -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
|
||||
|
||||
|
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user