Skip to content
Snippets Groups Projects
Commit be548ee3 authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-roles/letsencrypt#2 Issue and renew letsencrypt certs behin HaProxy...

ansible-roles/letsencrypt#2 Issue and renew letsencrypt certs behin HaProxy without stopping any services
parent 198c9140
No related branches found
No related tags found
No related merge requests found
......@@ -120,6 +120,8 @@ frontend http_in
{% if routing is defined and routing.default is defined %}
http-request set-header x-routing-host {{ routing.default }} if { hdr(x-routing-host) undefined } { hdr(host) -i -n {{ routing.domain }} }
{% endif %}
acl letsencrypt_challenge path_beg /.well-known/acme-challenge/
use_backend backend_letsencrypt if letsencrypt_challenge
{% if kibana_users is defined %}
acl kibana_present hdr(host) -i -n '{{ kibana_domain|default(inventory_hostname) }}'
use_backend backend_redirect_ssl if kibana_present
......@@ -341,6 +343,9 @@ backend backend_redirect_ssl
backend backend_redirect
redirect scheme http if TRUE
backend backend_letsencrypt
server letsencrypt 127.0.0.1:54321
{% if kibana_users is defined %}
backend backend_kibana
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment