File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -876,7 +876,10 @@ def _run_background_healthcheck(self):
876
876
build_builder = self .build .get ("builder" )
877
877
healthcheck_url = reverse ("build-healthcheck" , kwargs = {"pk" : build_id })
878
878
url = f"{ settings .SLUMBER_API_HOST } { healthcheck_url } ?builder={ build_builder } "
879
- cmd = f"/bin/bash -c 'while true; do curl --max-time 2 -X POST { url } ; sleep { settings .RTD_BUILD_HEALTHCHECK_DELAY } ; done;'"
879
+
880
+ # We use --insecure because we are hitting the internal load balancer here that doesn't have a SSL certificate
881
+ # The -H "Host: " header is required because of internal load balancer URL
882
+ cmd = f"/bin/bash -c 'while true; do curl --insecure --max-time 2 -H \" Host: { settings .PRODUCTION_DOMAIN } \" -X POST { url } ; sleep { settings .RTD_BUILD_HEALTHCHECK_DELAY } ; done;'"
880
883
log .info ("Healthcheck command to run." , command = cmd )
881
884
882
885
client = self .get_client ()
You can’t perform that action at this time.
0 commit comments