feat: manage haproxy for stalwart #420

Merged
unkinben merged 2 commits from benvin/haproxy_stalwart into develop 2025-11-08 21:07:44 +11:00
Showing only changes of commit 9ce624434a - Show all commits

View File

@ -15,6 +15,8 @@ profiles::haproxy::dns::vrrp_cnames:
- mail-in.main.unkin.net
- imap.main.unkin.net
- imaps.main.unkin.net
- autoconfig.main.unkin.net.
- autodiscover.main.unkin.net.
profiles::haproxy::mappings:
fe_http:
@ -34,6 +36,8 @@ profiles::haproxy::mappings:
- 'grafana.unkin.net be_grafana'
- 'dashboard.ceph.unkin.net be_ceph_dashboard'
- 'mail-webadmin.main.unkin.net be_stalwart_webadmin'
- 'autoconfig.main.unkin.net be_stalwart_webadmin'
- 'autodiscovery.main.unkin.net be_stalwart_webadmin'
fe_https:
ensure: present
mappings:
@ -51,6 +55,8 @@ profiles::haproxy::mappings:
- 'grafana.unkin.net be_grafana'
- 'dashboard.ceph.unkin.net be_ceph_dashboard'
- 'mail-webadmin.main.unkin.net be_stalwart_webadmin'
- 'autoconfig.main.unkin.net be_stalwart_webadmin'
- 'autodiscovery.main.unkin.net be_stalwart_webadmin'
profiles::haproxy::frontends:
fe_http:
@ -73,6 +79,8 @@ profiles::haproxy::frontends:
- 'acl_grafana req.hdr(host) -i grafana.unkin.net'
- 'acl_ceph_dashboard req.hdr(host) -i dashboard.ceph.unkin.net'
- 'acl_stalwart_webadmin req.hdr(host) -i mail-webadmin.main.unkin.net'
- 'acl_stalwart_webadmin req.hdr(host) -i autoconfig.main.unkin.net'
- 'acl_stalwart_webadmin req.hdr(host) -i autodiscovery.main.unkin.net'
- 'acl_internalsubnets src 198.18.0.0/16 10.10.12.0/24'
use_backend:
- "%[req.hdr(host),lower,map(/etc/haproxy/fe_https.map,be_default)]"