Update caddy-jail.sh

master
basilhendroff 2020-07-29 04:32:17 +08:00 committed by GitHub
parent a61b90eff1
commit f15913b80b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -140,3 +140,11 @@ if [ ${DNS_CERT} -eq 1 ]; then
else
iocage exec "${JAIL_NAME}" xcaddy build --output /usr/local/bin/caddy
fi
# Copy and edit pre-written config file
iocage exec "${JAIL_NAME}" cp -f /mnt/includes/caddy /usr/local/etc/rc.d/
iocage exec "${JAIL_NAME}" sysrc caddy_enable="YES"
iocage exec "${JAIL_NAME}" sysrc caddy_config="/usr/local/www/Caddyfile"
iocage restart "${JAIL_NAME}"