mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Refactored nginx-cert-deploy-to-docker in preparation for nginx
This commit is contained in:
@@ -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
|
@@ -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
|
@@ -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
|
||||
|
Reference in New Issue
Block a user