Projekt

Obecné

Profil

Stáhnout (849 Bajtů) Statistiky
| Větev: | Revize:
1 a60193de ballakt
#!/bin/bash
2
# Usage
3
# if you want create new license run: renew_certificate new
4
# if you want re-create the existing license run: renew_certificate
5
6 20513e9f Martin Sebela
#
7
# TODO: set website domain
8
#
9 a60193de ballakt
if [ "$1" = "new" ]; then
10
    docker-compose exec nginx /bin/sh -c "
11 4cd05f77 Tomáš Ballák
    cd /root/.acme.sh; \
12 68b8422b Tomáš Ballák
    bash acme.sh  --issue --nginx /etc/nginx/sites-available/default.conf -d heatmap.zcu.cz -d www.heatmap.zcu.cz --debug 2; \
13
    bash acme.sh --installcert -d heatmap.zcu.cz -d www.heatmap.zcu.cz\
14 f83d4608 Tomáš Ballák
    --key-file /root/.acme.sh/heatmap.zcu.cz/heatmap.zcu.cz.key \
15
    --fullchain-file /root/.acme.sh/heatmap.zcu.cz/fullchain.cer \
16 a60193de ballakt
    --reloadcmd 'bash /etc/init.d/nginx reload';
17
    ";
18
else
19 5be098ab Tomáš
    docker-compose exec nginx /bin/sh -c "cd /root/.acme.sh && bash acme.sh --issue --force -d heatmap.zcu.cz -d www.heatmap.zcu.cz -w /var/www/symfony/public && nginx -s reload"
20 0b05be35 Tomáš Ballák
fi