Commit f810fff7 authored by HgO's avatar HgO
Browse files

rename haproxy certificates

parent 507354cc
Pipeline #420 passed with stage
in 1 minute and 35 seconds
...@@ -35,7 +35,7 @@ if not result: ...@@ -35,7 +35,7 @@ if not result:
domain = result.group(1) domain = result.group(1)
# Define a path for HAproxy where you want to write the .pem file. # Define a path for HAproxy where you want to write the .pem file.
deploy_path="/etc/haproxy/ssl/" + domain + ".pem" deploy_path="/etc/haproxy/ssl/" + domain.replace('.', '-') + ".pem"
# The source files can be found in below paths, constructed with the lineage # The source files can be found in below paths, constructed with the lineage
# path # path
......
...@@ -12,7 +12,8 @@ ...@@ -12,7 +12,8 @@
## Prefix your entry with 'file://' if you intend to use relative paths ## Prefix your entry with 'file://' if you intend to use relative paths
sources = [ sources = [
{% for domain in letsencrypt.domains_gandi %} {% for domain in letsencrypt.domains_gandi %}
"/etc/haproxy/ssl/{{ domain }}.pem", "/etc/haproxy/ssl/{{ domain | replace('.', '-') }}.pem",
"/etc/haproxy/ssl/{{ domain }}-ecdsa.pem"{% if not loop.last %},{% endif %} "/etc/haproxy/ssl/{{ domain | replace('.', '-') }}-ecdsa.pem"{% if not loop.last %},{% endif %}
{% endfor %} {% endfor %}
] ]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment