mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 15:05:49 +03:00
[GH-ISSUE #531] How to change Ping URL from healthchecks.example.com #387
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#387
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?

@kamudadreieck commented on GitHub (Jun 16, 2021):
You need to set the environment variable
PING_ENDPOINTto your domain. If it is different from SITE_ROOT, this domain has to be added toALLOWED_HOSTSas well. :)Another way is to unset
PING_ENDPOINT, then it defaults toSITE_URL + /pings/github.com/healthchecks/healthchecks@6c8b6a2a19/hc/settings.py (L159)@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.
@cuu508 commented on GitHub (Jun 16, 2021):
@bluej007 what Dockerfile are you using?
The base URL for ping endpoints is defined in
settings.py:@cuu508 commented on GitHub (Aug 12, 2021):
No response, closing.