diff options
Diffstat (limited to 'files/etc')
-rw-r--r-- | files/etc/cron.d/acme.common | 2 | ||||
-rw-r--r-- | files/etc/pf.conf.freebsd | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/files/etc/cron.d/acme.common b/files/etc/cron.d/acme.common new file mode 100644 index 0000000..05bf064 --- /dev/null +++ b/files/etc/cron.d/acme.common @@ -0,0 +1,2 @@ +MAILTO=root +00 15 * * * ${acme_user} lockf -t 0 /tmp/acme-cron.lock acme.sh --cron --home ${acme_home} --syslog 6 > /dev/null diff --git a/files/etc/pf.conf.freebsd b/files/etc/pf.conf.freebsd index e01f49d..881fcea 100644 --- a/files/etc/pf.conf.freebsd +++ b/files/etc/pf.conf.freebsd @@ -5,8 +5,12 @@ $(if [ -n "${pf_egress_interfaces:-}" ]; then fi) allowed_tcp_ports = "{ $(join ', ' ${allowed_tcp_ports:-}) }" allowed_udp_ports = "{ $(join ', ' ${allowed_udp_ports:-}) }" + +$([ "${acme_standalone:-}" = true ] && cat <<EOF acme_standalone_port = ${acme_standalone_port} -acme_standalone_user = ${acme_uid} +acme_standalone_user = $(id -u "$acme_user") +EOF +) nfscbd_port = ${nfscbd_port} set block-policy return |