[GH-ISSUE #531] How to change Ping URL from healthchecks.example.com #387

Closed
opened 2026-02-25 23:42:16 +03:00 by kerem · 4 comments
Owner

Originally created by @bluej007 on GitHub (Jun 15, 2021).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/531

I've set SITE_ROOT to http://healthcheck.mydomain.com but the Ping URL isn't changing. What am I missing?
image

Originally created by @bluej007 on GitHub (Jun 15, 2021). Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/531 I've set SITE_ROOT to http://healthcheck.mydomain.com but the Ping URL isn't changing. What am I missing? ![image](https://user-images.githubusercontent.com/53668195/122108012-5c037c00-cde1-11eb-8f0c-331d991b9615.png)
kerem closed this issue 2026-02-25 23:42:16 +03:00
Author
Owner

@kamudadreieck commented on GitHub (Jun 16, 2021):

You need to set the environment variable PING_ENDPOINT to your domain. If it is different from SITE_ROOT, this domain has to be added to ALLOWED_HOSTS as well. :)

Another way is to unset PING_ENDPOINT, then it defaults to SITE_URL + /pings/

github.com/healthchecks/healthchecks@6c8b6a2a19/hc/settings.py (L159)

<!-- gh-comment-id:861943756 --> @kamudadreieck commented on GitHub (Jun 16, 2021): You need to set the environment variable `PING_ENDPOINT` to your domain. If it is different from SITE_ROOT, this domain has to be added to `ALLOWED_HOSTS` as well. :) Another way is to unset `PING_ENDPOINT`, then it defaults to `SITE_URL + /pings/` https://github.com/healthchecks/healthchecks/blob/6c8b6a2a19f25eaac84e15f59c082b91ef123534/hc/settings.py#L159
Author
Owner

@bluej007 commented on GitHub (Jun 16, 2021):

Ok, I added the PING_ENDPOINT environment variable and set it to http://healthcheck.mydomain.com. ALLOWED_HOSTS already has healthcheck.mydomain.com. The Ping URL still reflects https://healthchecks.example.com and any new Checks use the same URL. I then deleted PING_ENDPOINT and nothing changed.

Also, this is running as a container.

<!-- gh-comment-id:862024577 --> @bluej007 commented on GitHub (Jun 16, 2021): Ok, I added the PING_ENDPOINT environment variable and set it to http://healthcheck.mydomain.com. ALLOWED_HOSTS already has healthcheck.mydomain.com. The Ping URL still reflects https://healthchecks.example.com and any new Checks use the same URL. I then deleted PING_ENDPOINT and nothing changed. Also, this is running as a container.
Author
Owner

@cuu508 commented on GitHub (Jun 16, 2021):

@bluej007 what Dockerfile are you using?

The base URL for ping endpoints is defined in settings.py:

PING_ENDPOINT = os.getenv("PING_ENDPOINT", SITE_ROOT + "/ping/")
<!-- gh-comment-id:862085738 --> @cuu508 commented on GitHub (Jun 16, 2021): @bluej007 what Dockerfile are you using? The base URL for ping endpoints is defined in `settings.py`: PING_ENDPOINT = os.getenv("PING_ENDPOINT", SITE_ROOT + "/ping/")
Author
Owner

@cuu508 commented on GitHub (Aug 12, 2021):

No response, closing.

<!-- gh-comment-id:897688403 --> @cuu508 commented on GitHub (Aug 12, 2021): No response, closing.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/healthchecks#387
No description provided.