fix for znc cert renew

This commit is contained in:
creme 2020-01-29 10:01:52 +00:00
parent b95bc0343e
commit ca9e69b1bf
2 changed files with 8 additions and 2 deletions

View File

@ -19,13 +19,15 @@ for domain in $RENEWED_DOMAINS; do
cp "$daemon_cert_root/fullchain.pem" "$matrix_dir"/
chmod 600 "$matrix_dir"/*.pem
chown 108:0 "$matrix_dir"/*.pem
lxc-attach -n matrix -- bash -c "systemctl reload nginx ; systemctl restart matrix-synapse coturn"
lxc-attach -n matrix -- bash -c "systemctl reload nginx ; systemctl restart coturn"
# pleroma
lxc-attach -n pleroma -- bash -c "systemctl reload nginx"
# mail
lxc-attach -n mail -- bash -c "systemctl reload nginx postfix dovecot"
# has a own letencrypt cert in container!
##lxc-attach -n mail -- bash -c "systemctl reload nginx postfix dovecot"
# mailinglists
lxc-attach -n lists -- bash -c "systemctl reload nginx postfix"

View File

@ -49,6 +49,10 @@ server {
location / {
return 301 https://znc.envs.net/;
}
location /.well-known/acme-challenge/ {
alias /var/lib/letsencrypt/.well-known/acme-challenge/;
}
}
server {