From cd5d573fc8efd29c3b0ae4bf2879d860c1960a23 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Fri, 26 Feb 2021 12:36:09 +0000 Subject: HAProxy; Configure init-addr to avoid startup failures Sometimes, DNS don't resolve when the system is starting, and resolving basreock.gitlab.io is needed in order to start HAProxy. By configuring with , we ignore DNS issues upon startup. More information here: - https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#5.2-init-addr --- baserock_frontend/haproxy.cfg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/baserock_frontend/haproxy.cfg b/baserock_frontend/haproxy.cfg index 193effd5..1217e957 100644 --- a/baserock_frontend/haproxy.cfg +++ b/baserock_frontend/haproxy.cfg @@ -29,6 +29,9 @@ defaults log global option httplog + # never fail on address resolution + default-server init-addr last,libc,none + frontend http-in # All HTTP traffic is redirected to HTTPS using the '301 Moved' HTTP code. bind *:80 -- cgit v1.2.1