feat: add stalwart autoconfig
All checks were successful
Build / precommit (pull_request) Successful in 3m57s
All checks were successful
Build / precommit (pull_request) Successful in 3m57s
- add autoconfig/autodiscovery cname/backends for stalwart
This commit is contained in:
parent
27a91dc90d
commit
9ce624434a
@ -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)]"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user