From 516a398d6da532efb15752aaec6195778816691c Mon Sep 17 00:00:00 2001 From: pierreozoux <pierre@ozoux.net> Date: Thu, 30 Apr 2015 15:55:29 +0100 Subject: [PATCH] Manage crt list manually (to avoid to having the cert) --- .../load-balancer/confd/confd/conf.d/crt-list.toml | 8 -------- .../load-balancer/confd/confd/templates/crt-list.tmpl | 8 -------- 2 files changed, 16 deletions(-) delete mode 100644 dockerfiles/load-balancer/confd/confd/conf.d/crt-list.toml delete mode 100644 dockerfiles/load-balancer/confd/confd/templates/crt-list.tmpl diff --git a/dockerfiles/load-balancer/confd/confd/conf.d/crt-list.toml b/dockerfiles/load-balancer/confd/confd/conf.d/crt-list.toml deleted file mode 100644 index da3c64b..0000000 --- a/dockerfiles/load-balancer/confd/confd/conf.d/crt-list.toml +++ /dev/null @@ -1,8 +0,0 @@ -[template] -src = "crt-list.tmpl" -dest = "/etc/haproxy/crt-list" -keys = [ - "/services" -] -reload_cmd = "/docker exec haproxy /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid -st $(sleep 1 && /docker exec haproxy cat /var/run/haproxy.pid)" - diff --git a/dockerfiles/load-balancer/confd/confd/templates/crt-list.tmpl b/dockerfiles/load-balancer/confd/confd/templates/crt-list.tmpl deleted file mode 100644 index 731e011..0000000 --- a/dockerfiles/load-balancer/confd/confd/templates/crt-list.tmpl +++ /dev/null @@ -1,8 +0,0 @@ -{{range $app := lsdir "/services"}} -{{$hostnames := printf "/services/%s/*" $app}} - {{range gets $hostnames}} - {{$hostname := .Key}} -/etc/haproxy/approved-certs/{{base $hostname}}.pem {{base $hostname}} -/etc/haproxy/approved-certs/{{base $hostname}}.pem www.{{base $hostname}} - {{end}} -{{end}} -- GitLab