aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom MTT <tom@heimdall.pm>2023-10-12 02:18:43 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2023-10-12 02:38:40 +0000
commit528ac9e77df40d5e8bf424b8a1255be4d2986ec9 (patch)
tree691478f712997c6c62ca5e96e3c2b0c82da14a88
parentdadbb62c4798c6ca5365014c80197feb622df75f (diff)
downloadports-528ac9e77df40d5e8bf424b8a1255be4d2986ec9.tar.gz
ports-528ac9e77df40d5e8bf424b8a1255be4d2986ec9.zip
www/caddy: Add reloadssl rc(8) command
`service caddy reloadssl` instructs Caddy to reload its TLS certificates. This is useful when using Caddy with ACME DNS providers, as it allows for the renewal of certificates without manually deleting the old ones and restarting Caddy. PR: 274085
-rw-r--r--www/caddy/files/caddy.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/www/caddy/files/caddy.in b/www/caddy/files/caddy.in
index 17724715ae5c..8e46cd93aae9 100644
--- a/www/caddy/files/caddy.in
+++ b/www/caddy/files/caddy.in
@@ -70,9 +70,10 @@ else
fi
# Extra Commands
-extra_commands="configtest reload"
+extra_commands="configtest reload reloadssl"
configtest_cmd="caddy_execute validate ${caddy_flags}"
reload_cmd="caddy_execute reload ${caddy_flags}"
+reloadssl_cmd="caddy_execute reload --force ${caddy_flags}"
caddy_execute()
{