Refactored nginx-cert-deploy-to-docker in preparation for nginx

This commit is contained in:
2025-01-21 16:00:57 +01:00
parent 936fdbad66
commit e55b37b54e
12 changed files with 77 additions and 52 deletions

View File

@@ -1,7 +0,0 @@
[Unit]
Description=Let's Encrypt Mailu Deploy
OnFailure=systemd-notifier.cymais@%n.service
[Service]
Type=oneshot
ExecStart=/usr/bin/bash {{path_administrator_scripts}}mailu/deploy-letsencrypt-mailu.sh

View File

@@ -1,4 +0,0 @@
#!/bin/sh
cp /etc/letsencrypt/live/{{domain}}/privkey.pem /etc/mailu/certs/key.pem || exit 1
cp /etc/letsencrypt/live/{{domain}}/fullchain.pem /etc/mailu/certs/cert.pem || exit 1
cd {{docker_compose_instance_directory}} && docker compose exec front nginx -s reload || exit 1

View File

@@ -32,7 +32,7 @@ services:
- "{{ ip4_address }}:4190:4190"
volumes:
- "/etc/mailu/overrides/nginx:/overrides:ro"
- "/etc/mailu/certs:/certs"
- "{{docker_compose_instance_directory}}/certs/:/certs"
{% include 'templates/docker/container/depends-on-also-database.yml.j2' %}
resolver:
condition: service_started