-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Настроена перевыдача сертификатов
- Loading branch information
1 parent
151d202
commit dba626c
Showing
6 changed files
with
30 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
FROM certbot/certbot | ||
|
||
RUN apt-get update && apt-get install -y cron | ||
|
||
ARG DOMAIN_NAME | ||
|
||
COPY certbot_cron.cron /etc/cron.d/certbot_cron | ||
COPY certbot_renew.sh /usr/local/bin/ | ||
|
||
RUN chmod +x /usr/local/bin/certbot_renew.sh | ||
|
||
CMD ["cron", "-f"] | ||
RUN echo "0 0 1 */2 * /usr/local/bin/certbot_renew.sh" | crontab - |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
docker compose -f docker-compose-prod.yaml exec -ti certbot certbot renew --quiet --non-interactive | ||
docker compose -f docker-compose-prod.yaml restart nginx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters