Revize 43cc50af
Přidáno uživatelem Tomáš Ballák před asi 4 roky(ů)
scripts/renew_certificate.sh | ||
---|---|---|
6 | 6 |
if [ "$1" = "new" ]; then |
7 | 7 |
docker-compose exec nginx /bin/sh -c " |
8 | 8 |
cd /root/.acme.sh; \ |
9 |
bash acme.sh --issue -d www.heatmap.zcu.cz --nginx /etc/nginx/sites-available/default.conf --debug 2; \
|
|
9 |
bash acme.sh --issue -d heatmap.zcu.cz --nginx /etc/nginx/sites-available/default.conf --debug 2; \ |
|
10 | 10 |
bash acme.sh --installcert -d heatmap.zcu.cz \ |
11 | 11 |
--key-file /certificate/key.pem \ |
12 | 12 |
--fullchain-file /certificate/cert.pem \ |
13 | 13 |
--reloadcmd 'bash /etc/init.d/nginx reload'; |
14 | 14 |
"; |
15 | 15 |
else |
16 |
docker-compose exec nginx /bin/sh -c "acme.sh --renew -d heatmap.zcu.cz"; |
|
16 |
docker-compose exec nginx /bin/sh -c "cd root/.acme.sh && bash acme.sh --renew -d heatmap.zcu.cz";
|
|
17 | 17 |
fi |
Také k dispozici: Unified diff
redirect to https only + fix renew script and sites ...