Update monitoring caddy file to remove acme.sh
This commit is contained in:
parent
a616f93441
commit
e8bf72f169
|
@ -35,20 +35,21 @@ systemctl restart munin-node
|
||||||
|
|
||||||
cat > /etc/caddy/services/munin.conf <<EOF
|
cat > /etc/caddy/services/munin.conf <<EOF
|
||||||
# Munin - Static web resources
|
# Munin - Static web resources
|
||||||
domain.tld:80/static domain.tld:443/static {
|
domain.tld/static {
|
||||||
|
tls user@domain.tld
|
||||||
|
|
||||||
redir 301 {
|
redir 301 {
|
||||||
if {scheme} is http
|
if {scheme} is http
|
||||||
/ https://domain.tld{uri}
|
/ https://domain.tld{uri}
|
||||||
}
|
}
|
||||||
|
|
||||||
root /etc/munin/static
|
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
|
# Munin - main site/cgi's
|
||||||
domain.tld:80 domain.tld:443 {
|
domain.tld {
|
||||||
|
tls user@domain.tld
|
||||||
|
|
||||||
redir 301 {
|
redir 301 {
|
||||||
if {scheme} is http
|
if {scheme} is http
|
||||||
/ https://domain.tld{uri}
|
/ https://domain.tld{uri}
|
||||||
|
@ -62,9 +63,6 @@ domain.tld:80 domain.tld:443 {
|
||||||
|
|
||||||
# Set path to generated HTML via cron/systemd processes
|
# Set path to generated HTML via cron/systemd processes
|
||||||
root /var/cache/munin/www
|
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
|
EOF
|
||||||
|
|
||||||
|
|
Reference in New Issue