kemonine
/
lollipopcloud
Archived
1
0
Fork 0

Update monitoring caddy file to remove acme.sh

This commit is contained in:
KemoNine 2019-01-15 15:38:28 -05:00
parent a616f93441
commit e8bf72f169
No known key found for this signature in database
GPG Key ID: 9D79FBF661EC6779
1 changed files with 6 additions and 8 deletions

View File

@ -35,20 +35,21 @@ systemctl restart munin-node
cat > /etc/caddy/services/munin.conf <<EOF
# Munin - Static web resources
domain.tld:80/static domain.tld:443/static {
domain.tld/static {
tls user@domain.tld
redir 301 {
if {scheme} is http
/ https://domain.tld{uri}
}
root /etc/munin/static
# Use acme.sh Let's Encrypt SSL cert setup
tls /var/acme.sh/domain.tld/fullchain.cer /var/acme.sh/domain.tld/domain.tld.key
}
# Munin - main site/cgi's
domain.tld:80 domain.tld:443 {
domain.tld {
tls user@domain.tld
redir 301 {
if {scheme} is http
/ https://domain.tld{uri}
@ -62,9 +63,6 @@ domain.tld:80 domain.tld:443 {
# Set path to generated HTML via cron/systemd processes
root /var/cache/munin/www
# Use acme.sh Let's Encrypt SSL cert setup
tls /var/acme.sh/domain.tld/fullchain.cer /var/acme.sh/domain.tld/domain.tld.key
}
EOF