Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能修改成可以工作在群晖docker中的模式嘛? #1

Closed
mapleshadow opened this issue Sep 3, 2023 · 4 comments
Closed

能修改成可以工作在群晖docker中的模式嘛? #1

mapleshadow opened this issue Sep 3, 2023 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@mapleshadow
Copy link

RT,感谢!

@aiyaxcom
Copy link
Owner

aiyaxcom commented Sep 3, 2023

没用过群晖呢,下周我研究研究

@aiyaxcom
Copy link
Owner

aiyaxcom commented Sep 4, 2023

群晖也是Linux系统,使用创建和更新证书脚本理论上没有什么问题,有运行脚本试过吗?

@sd7y
Copy link

sd7y commented Sep 8, 2023

我在群晖上使用命令是可以运行的
image

mkdir -p ./etc/letsencrypt
mkdir -p ./var/lib/letsencrypt
sudo docker run -it --rm --name certbot-dns-aliyun \
  -v "$(pwd)/etc/letsencrypt:/etc/letsencrypt" \
  -v "$(pwd)/var/lib/letsencrypt:/var/lib/letsencrypt" \
  -e ALIYUN_CLI_ACCESS_KEY_ID=$ALIYUN_CLI_ACCESS_KEY_ID \
  -e ALIYUN_CLI_ACCESS_KEY_SECRET=$ALIYUN_CLI_ACCESS_KEY_SECRET \
  aiyax/certbot-dns-aliyun certonly \
    -d "xxx.xxx.com" \
    --manual \
    --preferred-challenges dns \
    --manual-auth-hook 'aliyun-dns' \
    --manual-cleanup-hook 'aliyun-dns clean'

@aiyaxcom
Copy link
Owner

aiyaxcom commented Sep 8, 2023

@sd7y 感谢指正
之前的创建脚本有两处错误,已在main分支更正,包含:

  1. --manual-clean-hook 应该为 --manual-cleanup-hook
  2. 去掉--non-interactive以在创建时开启交互模式

@mapleshadow FYI

@aiyaxcom aiyaxcom added the question Further information is requested label Sep 8, 2023
@aiyaxcom aiyaxcom self-assigned this Sep 9, 2023
@aiyaxcom aiyaxcom closed this as completed Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants