21 lines
627 B
Bash
Executable File
21 lines
627 B
Bash
Executable File
#!/bin/bash
|
|
cd /opt/caddy/certbot-aliyun-docker/derper
|
|
docker run --rm \
|
|
-e REGION=cn-hangzhou \
|
|
-e ACCESS_KEY_ID=LTAI5tP1yWFMMJhF6nrGYEit \
|
|
-e ACCESS_KEY_SECRET=xBEMX76UwvO21DCES2605VM0kAU7TV \
|
|
-e DOMAIN=derper.jmsu.top \
|
|
-e EMAIL=pylyzeng@gmail.com \
|
|
-v "$PWD/letsencrypt:/etc/letsencrypt" \
|
|
-v "$PWD/certs:/app/certs" \
|
|
-v "$PWD/logs:/var/log/certbot" \
|
|
hotwa/certbot:latest \
|
|
certbot renew \
|
|
--manual \
|
|
--preferred-challenges dns \
|
|
--manual-auth-hook "alidns" \
|
|
--manual-cleanup-hook "alidns clean" \
|
|
--deploy-hook "/app/scripts/webhook.sh" \
|
|
--no-random-sleep-on-renew \
|
|
-v
|