Skip to content

Commit b867971

Browse files
authored
Use the new ACME-generated certs (#615)
1 parent 05f1a57 commit b867971

File tree

3 files changed

+9
-19
lines changed

3 files changed

+9
-19
lines changed

Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ SERVERS = [
1111
{:name => "docs", :codename => "noble"},
1212
{:name => "downloads", :codename => "noble"},
1313
{:name => "hg", :codename => "noble"},
14-
{:name => "loadbalancer", :codename => "noble", :ports => [20000, 20001, 20002, 20003, 20004, 20005, 20010, 20011]},
14+
{:name => "loadbalancer", :codename => "noble", :ports => [20000, 20001, 20002, 20004, 20010, 20011]},
1515
"mail",
1616
"moin",
1717
"planet",

pillar/base/firewall/loadbalancer.sls

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,9 @@ firewall:
1111
http_2:
1212
port: 20002
1313

14-
http_3:
15-
port: 20003
16-
1714
http_4:
1815
port: 20004
1916

20-
http_5:
21-
port: 20005
22-
23-
http_6:
24-
port: 20006
25-
2617
http_map:
2718
port: 20010
2819

salt/haproxy/config/haproxy.cfg.jinja

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,14 @@ frontend main
9292

9393
# HTTPS Binds
9494
# Advertise http/1.1 over NPN to enable TLS False Start
95-
bind :20003 ssl alpn h2,http/1.1 crt star.python.org.pem
96-
bind :20005 ssl alpn h2,http/1.1 crt star.pypa.io.pem
97-
bind :20006 ssl alpn h2,http/1.1 crt speed.pypy.org.pem
98-
bind :20007 ssl alpn h2,http/1.1 crt star.pycon.org.pem
99-
bind :20008 ssl alpn h2,http/1.1 crt jython.org.pem
100-
bind 0.0.0.0:443 ssl alpn h2,http/1.1 crt star.python.org.pem crt star.pycon.org.pem crt star.pypa.io.pem crt star.pyfound.org.pem crt speed.pypy.org.pem crt jython.org.pem crt salt-public.psf.io.pem crt planetpython.org.pem crt bugs.python.org.pem
101-
bind :::443 ssl alpn h2,http/1.1 crt star.python.org.pem crt star.pycon.org.pem crt star.pypa.io.pem crt star.pyfound.org.pem crt speed.pypy.org.pem crt jython.org.pem crt salt-public.psf.io.pem crt planetpython.org.pem crt bugs.python.org.pem
102-
bind :20010 ssl alpn h2,http/1.1 crt star.python.org.pem crt star.pycon.org.pem crt star.pypa.io.pem crt star.pyfound.org.pem crt speed.pypy.org.pem crt jython.org.pem crt salt-public.psf.io.pem crt planetpython.org.pem crt bugs.python.org.pem
103-
bind :20011 accept-proxy ssl alpn h2,http/1.1 crt star.python.org.pem crt star.pycon.org.pem crt star.pypa.io.pem crt star.pyfound.org.pem crt speed.pypy.org.pem crt jython.org.pem crt salt-public.psf.io.pem crt planetpython.org.pem crt bugs.python.org.pem
95+
{% set acme_certs = [] -%}
96+
{% for domain in salt["pillar.get"]("tls:acme_cert_configs", {}).keys() -%}
97+
{%- set _ = acme_certs.append("acme-" ~ domain ~ ".pem") -%}
98+
{% endfor -%}
99+
bind 0.0.0.0:443 ssl alpn h2,http/1.1 {% for cert in acme_certs %}crt {{ cert }} {% endfor %}
100+
bind :::443 ssl alpn h2,http/1.1 {% for cert in acme_certs %}crt {{ cert }} {% endfor %}
101+
bind :20010 ssl alpn h2,http/1.1 {% for cert in acme_certs %}crt {{ cert }} {% endfor %}
102+
bind :20011 accept-proxy ssl alpn h2,http/1.1 {% for cert in acme_certs %}crt {{ cert }} {% endfor %}
104103

105104
# Define a stick table for all services
106105
stick-table type ipv6 size 100k expire 30s store http_req_rate(10s)

0 commit comments

Comments
 (0)