Allow specification of a host header in HTTP health checks
A
Adam Peacock
My application (Django) uses a configuration to limit requests to only those that are to the proper host. Unfortunately, if I try to use an HTTP health check, the apps platform either uses an unknown IP address as the host header or isn't including one. Would there be a way to include a host (or other arbitrary) header in the health check?
D
DubClub Devs
ALLOWED_HOSTS in django isn't the only one. making host header configurable, or just allowing adding custom headers (kubernetes allows both https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#http-probes ) would solve this issue.
a more lean approach (if you don't want this configurable for any reason) would be to send the DO App's main domain as host header in the healthcheck request by default.
Tomáš Livora
We would also need this feature because some of our health checks are secured by HTTP Basic authentication. Due to this, we're not able to switch from TCP to HTTP health checks.