File tree 5 files changed +16
-11
lines changed
5 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 1
- FROM certbot/certbot:v1.27 .0
1
+ FROM certbot/certbot:v1.29 .0
2
2
3
3
RUN apk add --no-cache bash
4
4
Original file line number Diff line number Diff line change @@ -18,8 +18,10 @@ if [ "$CERTBOT_TEST_CERT" != "0" ]; then
18
18
test_cert_arg=" --test-cert"
19
19
fi
20
20
21
- domain_list=($DOMAINS )
22
- emails_list=($CERTBOT_EMAILS )
21
+ domains_fixed=$( echo " $DOMAINS " | tr -d \" )
22
+ domain_list=($domains_fixed )
23
+ emails_fixed=$( echo " $CERTBOT_EMAILS " | tr -d \" )
24
+ emails_list=($emails_fixed )
23
25
for i in " ${! domain_list[@]} " ; do
24
26
domain=" ${domain_list[i]} "
25
27
@@ -30,12 +32,13 @@ for i in "${!domain_list[@]}"; do
30
32
continue
31
33
fi
32
34
33
- echo " Obtaining the certificate for $domain "
34
-
35
- if [ -z " ${emails_list[i]} " ]; then
35
+ email=" ${emails_list[i]} "
36
+ if [ -z " $email " ]; then
36
37
email_arg=" --register-unsafely-without-email"
38
+ echo " Obtaining the certificate for $domain without email"
37
39
else
38
- email_arg=" --email ${emails_list[i]} "
40
+ email_arg=" --email $email "
41
+ echo " Obtaining the certificate for $domain with email $email "
39
42
fi
40
43
41
44
certbot certonly \
@@ -46,5 +49,6 @@ for i in "${!domain_list[@]}"; do
46
49
$email_arg \
47
50
--rsa-key-size " ${CERTBOT_RSA_KEY_SIZE:- 4096} " \
48
51
--agree-tos \
49
- --noninteractive || true
52
+ --noninteractive \
53
+ --verbose || true
50
54
done
Original file line number Diff line number Diff line change 1
- FROM alpine:3.15
1
+ FROM alpine:3.16
2
2
3
3
RUN apk update && \
4
4
apk add --no-cache docker-cli docker-cli-compose
Original file line number Diff line number Diff line change 1
- FROM nginx:1.21 -alpine
1
+ FROM nginx:1.23 -alpine
2
2
3
3
RUN apk add --no-cache openssl
4
4
Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ if [ ! -f /etc/nginx/sites/ssl/ssl-dhparams.pem ]; then
40
40
openssl dhparam -out /etc/nginx/sites/ssl/ssl-dhparams.pem 2048
41
41
fi
42
42
43
- for domain in $DOMAINS ; do
43
+ domains_fixed=$( echo " $DOMAINS " | tr -d \" )
44
+ for domain in $domains_fixed ; do
44
45
echo " Checking configuration for $domain "
45
46
46
47
if [ ! -f " /etc/nginx/sites/$domain .conf" ]; then
You can’t perform that action at this time.
0 commit comments