Mailu Frontend doesn't refresh certificate automatically #86

Open
opened 2022-06-20 13:32:46 +00:00 by graffen · 2 comments
Contributor

When the TLS Cert is updated by the reverse proxy, the mailu frontend container needs to be restarted. We need to find a way to do this automatically.

When the TLS Cert is updated by the reverse proxy, the mailu frontend container needs to be restarted. We need to find a way to do this automatically.
Owner
Relevant: https://mailu.io/master/maintain.html#managing-of-external-let-s-encrypt-certificates
Owner

https://git.data.coop/data.coop/ansible/src/branch/master/roles/docker/tasks/services/mailu.yml#L25-L38

The TLS certificate and key files are hard-linked from nginx to Mailu. When nginx renews the cert, the modified-date of the hard-link is updated as well. This means that, if we can somehow have something to listen for the files (the hard-links) being modified on Mailu's side of things, this would be easily solvable.

https://git.data.coop/data.coop/ansible/src/branch/master/roles/docker/tasks/services/mailu.yml#L25-L38 The TLS certificate and key files are hard-linked from nginx to Mailu. When nginx renews the cert, the modified-date of the hard-link is updated as well. This means that, if we can somehow have something to listen for the files (the hard-links) being modified on Mailu's side of things, this would be easily solvable.
samsapti added the
Existing Service
label 2022-11-16 13:45:53 +00:00
valberg added this to the Devops work project 2024-02-09 07:52:18 +00:00
Sign in to join this conversation.
No description provided.