Merge branch 'master' of https://github.com/danb35/freenas-iocage-caddy
commit
b21cd3c0ca
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue