Dan Brown 2020-08-02 06:44:50 -04:00
commit b21cd3c0ca
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ sub.domain.com {
}
}
```
Compared to the last example, the only change is the `tls{}` block. In that block, `dns` is a required keyword, `cloudflare` is the name of the plugin being used, and `log_api_token` is a Cloudflare API token with appropriate permissions. The reverse proxy is added as above.
Compared to the last example, the only change is the `tls{}` block. In that block, `dns` is a required keyword, `cloudflare` is the name of the plugin being used, and `long_api_token` is a Cloudflare API token with appropriate permissions. The reverse proxy is added as above.
Authentication credentials vary for each supported DNS host. The Caddy download page links to the individual plugins, which document the required credentials and how to specify them. You'll need to make adjustments for your own situation.

View File

@ -147,7 +147,7 @@ fi
# Copy pre-written config files
iocage exec "${JAIL_NAME}" cp /mnt/includes/caddy /usr/local/etc/rc.d/
iocage exec "${JAIL_NAME}" cp "${INCLUDES_PATH}"/Caddyfile /usr/local/www/
iocage exec "${JAIL_NAME}" cp -n /mnt/includes/Caddyfile /usr/local/www/ 2>/dev/null
iocage exec "${JAIL_NAME}" sysrc caddy_enable="YES"
iocage exec "${JAIL_NAME}" sysrc caddy_config="/usr/local/www/Caddyfile"