Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM alpine:3.3

MAINTAINER Steven Borrelli <steve@aster.is>

ENV CONSUL_TEMPLATE_VERSION=0.12.2
ENV CONSUL_TEMPLATE_VERSION=0.14.0

RUN apk update && \
apk add bash haproxy ca-certificates zip && \
Expand Down
2 changes: 1 addition & 1 deletion launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function launch_haproxy {
# be started)
[ -f /haproxy/haproxy.cfg ] && rm /haproxy/haproxy.cfg

${CONSUL_TEMPLATE} -config ${CONSUL_CONFIG} \
exec ${CONSUL_TEMPLATE} -config ${CONSUL_CONFIG} \
-log-level ${CONSUL_LOGLEVEL} \
-wait ${CONSUL_MINWAIT}:${CONSUL_MAXWAIT} \
-consul ${CONSUL_CONNECT} ${ctargs} ${vars}
Expand Down
2 changes: 1 addition & 1 deletion template/consul.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ frontend www

# Generated automatically by consul-template
{{ range services }}
acl host_{{ .Name }} hdr(host) -i {{ .Name }}.{{ or (env "HAPROXY_DOMAIN") "haproxy.service.consul" }}
acl host_{{ .Name }} hdr_beg(host) -i {{ .Name }}.{{ or (env "HAPROXY_DOMAIN") "haproxy.service.consul" }}
use_backend {{ .Name }}_backend if host_{{ .Name }}
{{ end }}

Expand Down