Add deployhook wiki for CacheFly, Edgio, Netlify, DirectAdmin and KeyHelp.

b1n23 2024-04-01 23:24:19 +08:00
parent 9efbe91818
commit 678acedf44

@ -904,3 +904,81 @@ Deploy the cert using the following:
acme.sh --deploy -d 'my-cert.acme-apis.com' --deploy-hook cloudhub_v2
```
## 28. Deploy your cert to CacheFly
You must visit the [CacheFly Control Panel](https://portal.cachefly.com/app/tokens) and create an API Token before getting started.
Then you need to set the environment variables for the deploy script to work.
```sh
export CACHEFLY_TOKEN="Your CacheFly API Token"
acme.sh --deploy -d example.com --deploy-hook cachefly
```
## 29. Deploy your cert to Edgio
You must define the API CLIENT ID, API CLIENT SECRET and ENVIRONMENT ID before getting started.
To create an API client ([Documentation](https://docs.edg.io/)), and assign the 'app.config' scope.
To get the Environment ID, navigate to the Property and Environment pages where the certificate is to be deployed. Once there, you can find the Environment ID within the 'Environment Settings'.
```sh
export EDGIO_CLIENT_ID="Your Edgio Client ID"
export EDGIO_CLIENT_SECRET="Your Edgio Client Secret"
export EDGIO_ENVIRONMENT_ID="Your Edgio Environment ID"
# If have more than one Environment ID
# export EDGIO_ENVIRONMENT_ID="ENVIRONMENT_ID_1 ENVIRONMENT_ID_2"
acme.sh --deploy -d example.com --deploy-hook edgio
```
## 30. Deploy your cert to Netlify
You must define the ACCESS TOKEN, SITE ID before getting started.
To create a Personal access tokens (https://app.netlify.com/user/applications#personal-access-tokens).
To get the Site ID, navigate to the SITE where the certificate is to be deployed. Once there, you can find the Site ID within the 'Site configuration'.
```sh
export Netlify_ACCESS_TOKEN="Your Netlify Access Token"
export Netlify_SITE_ID="Your Netlify Site ID"
acme.sh --deploy -d example.com --deploy-hook netlify
```
## 31. Deploy your cert to DirectAdmin
You must define the following variables before getting started.
**DirectAdmin_ENDPOINT**: The hostname and port of DirectAdmin Panel.\
**DirectAdmin_USERNAME**: DirectAdmin username\
**DirectAdmin_KEY**: DirectAdmin Login Key or Password\
**DirectAdmin_MAIN_DOMAIN**: Domain names for which the certificate need to be deployed. Get it in 'Domain Management' page.
You can use the Login Key instead of the password ([Documentation](https://docs.directadmin.com/directadmin/customizing-workflow/api-all-about.html#creating-a-login-key)). Allow `CMD_SSL`, `CMD_API_SSL` command privileges.
```sh
export DirectAdmin_ENDPOINT="example.com:2222"
export DirectAdmin_USERNAME="Your DirectAdmin Username"
export DirectAdmin_KEY="Your DirectAdmin Login Key or Password"
export DirectAdmin_MAIN_DOMAIN="Your DirectAdmin Main Domain, NOT Subdomain"
acme.sh --deploy -d example.com --deploy-hook directadmin
```
## 32. Deploy your cert to KeyHelp
You must define the following variables before getting started.
**DEPLOY_KEYHELP_BASEURL**: The protocol and hostname of KeyHelp Panel, no "/" at the end.\
**DEPLOY_KEYHELP_USERNAME**: Your Username of KeyHelp Panel.\
**DEPLOY_KEYHELP_PASSWORD**: Your Password of KeyHelp Panel .\
**DEPLOY_KEYHELP_DOMAIN_ID**: Open the 'Edit domain' page, and you will see id=xxx at the end of the URL. This is the Domain ID.
```sh
export DEPLOY_KEYHELP_BASEURL="https://keyhelp.example.com"
export DEPLOY_KEYHELP_USERNAME="Your KeyHelp Username"
export DEPLOY_KEYHELP_PASSWORD="Your KeyHelp Password"
export DEPLOY_KEYHELP_DOMAIN_ID="Depoly certificate to this Domain ID"
acme.sh --deploy -d example.com --deploy-hook keyhelp
```