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

Dockerfile中映射的默认证书路径可以改改嘛? #21

Open
iatk0-1 opened this issue Aug 12, 2024 · 2 comments
Open

Dockerfile中映射的默认证书路径可以改改嘛? #21

iatk0-1 opened this issue Aug 12, 2024 · 2 comments

Comments

@iatk0-1
Copy link
Contributor

iatk0-1 commented Aug 12, 2024

docker run
-e REGION=YOUR_REGEION
-e ACCESS_KEY_ID=YOUR_ACCESS_KEY
-e ACCESS_KEY_SECRET=YOUR_ACCESS_SECRET
-e DOMAIN=YOUR_DOMAIN
-e EMAIL=YOUR_NOTIFICATION_EMAIL \ // 证书刷新通知邮箱
-e CRON_SCHEDULE="0 0 * * *" \ // 自定义证书刷新间隔
-v /path/to/your_certs:/etc/letsencrypt/certs \
-d certbot-alicli

其中 -v /path/to/your_certs:/etc/letsencrypt/certs 默认证书保存位置在/etc/letsencrypt/live而不是/etc/letsencrypt/certs,docker创建完后才发现,改的有点麻烦

@iatk0-1 iatk0-1 closed this as completed Aug 12, 2024
@iatk0-1 iatk0-1 reopened this Aug 12, 2024
@iatk0-1
Copy link
Contributor Author

iatk0-1 commented Aug 12, 2024

少映射一个路径,导致映射出来的证书实际只是一个链接

@Jayczee
Copy link
Contributor

Jayczee commented Aug 13, 2024

#22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants