summaryrefslogtreecommitdiffstats
path: root/python-dockering/dockering/config_building.py
diff options
context:
space:
mode:
Diffstat (limited to 'python-dockering/dockering/config_building.py')
-rw-r--r--python-dockering/dockering/config_building.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/python-dockering/dockering/config_building.py b/python-dockering/dockering/config_building.py
index 564e5de..08fd1c0 100644
--- a/python-dockering/dockering/config_building.py
+++ b/python-dockering/dockering/config_building.py
@@ -60,6 +60,11 @@ def create_envs_healthcheck(docker_config, default_interval="15s",
# WATCH: HTTPS health checks don't work. Seems like Registrator bug.
# Submitted issue https://github.com/gliderlabs/registrator/issues/516
envs["SERVICE_CHECK_HTTPS"] = hc["endpoint"]
+ # Went with one of the suggestiong from the posted issue above. This
+ # author is skeptical whether https healthchecks will ever work with
+ # server cert verification because the hostname is actually the ip
+ # address.
+ envs["SERVICE_CHECK_TLS_SKIP_VERIFY"] = "true"
utils.logger.warn("Https-based health checks may not work because Registrator issue #516")
elif hc["type"] == "script":
envs["SERVICE_CHECK_SCRIPT"] = hc["script"]