Set up mta-sts

This commit is contained in:
Ivan R. 2024-10-25 16:17:53 +05:00
parent 2baaaa59e0
commit 7148e3d514
Signed by: lumin
GPG key ID: E0937DC7CD6D3817
2 changed files with 17 additions and 0 deletions

View file

@ -82,6 +82,9 @@ frontend www
acl host_grafana hdr(host) -i grafana.comfycamp.space
use_backend grafana if host_grafana
acl host_mta_sts hdr(host) -i mta-sts.comfycamp.space
use_backend mta_sts if host_mta_sts
frontend matrix-federation
bind *:8448 ssl crt /usr/local/etc/haproxy/certs
http-request set-header X-Forwarded-Proto https if { ssl_fc }
@ -165,3 +168,7 @@ backend nextcloud
mode http
option forwardfor
server s1 nextcloud-1:80 check
backend mta_sts
mode http
server s1 mta-sts-1:8080 check

View file

@ -67,3 +67,13 @@
when: not item.key in maddy_imap_accounts.stdout
no_log: True
loop: "{{ users | dict2items }}"
- name: Run mta-sts container
become: true
community.docker.docker_container:
name: mta-sts-1
image: git.comfycamp.space/lumin/mta-sts:v0.1.2
networks:
- name: haproxy
env:
MTA_STS_MX: "{{ hostname }}"
restart_policy: unless-stopped