Updated deployhooks (markdown)

master
invario 2025-07-28 12:20:00 -04:00
parent 2a9a74724c
commit a0fc3ea12b
1 changed files with 4 additions and 1 deletions

@ -1242,11 +1242,14 @@ If you generated a wildcard certificate and your certificate files are named _*.
## 39. Deploy to local directory via copy
Deploy hook to copy certificates to specified directories and execute new command. Helpful for admins that want to simply deploy the certificates to a directory and then execute a custom script/command to perform necessary tasks. Especially useful when used in conjuction with the `multideploy` hook (in development).
Setting `DEPLOY_LOCALCOPY_CERTKEY` and `DEPLOY_LOCALCOPY_CERTIFICATE` or `DEPLOY_LOCALCOPY_FULLCHAIN` to the same path will result in a combined PEM file being outputted.
```
export DEPLOY_LOCALCOPY_CERTIFICATE="/path/to/target/cert.cer"
export DEPLOY_LOCALCOPY_CERTKEY="/path/to/target/cert.key"
export DEPLOY_LOCALCOPY_CERTIFICATE="/path/to/target/cert.cer"
export DEPLOY_LOCALCOPY_FULLCHAIN="/path/to/target/fullchain.cer"
export DEPLOY_LOCALCOPY_CA="/path/to/target/ca.cer"
export DEPLOY_LOCALCOPY_PFX="/path/to/target/cert.pfx"
export DEPLOY_LOCALCOPY_RELOADCMD="/path/to/reloadcmd.sh"
acme.sh --deploy -d example.com --deploy-hook localcopy
```