You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sed -i "s|^dns_duckdns_token=.*|dns_duckdns_token=${DUCKDNSTOKEN}|g" /config/dns-conf/duckdns.ini
73
+
fi
74
+
fi
75
+
if [ "$VALIDATION" = "dns" ] && [ "$DNSPLUGIN" = "duckdns" ]; then
76
+
if [ "$SUBDOMAINS" = "wildcard" ]; then
77
+
echo "the resulting certificate will only cover the subdomains due to a limitation of duckdns, so it is advised to set the root location to use www.subdomain.duckdns.org"
78
+
export ONLY_SUBDOMAINS=true
79
+
else
80
+
echo "the resulting certificate will only cover the main domain due to a limitation of duckdns, ie. subdomain.duckdns.org"
81
+
export SUBDOMAINS=""
82
+
fi
83
+
export EXTRA_DOMAINS=""
84
+
fi
85
+
67
86
# if zerossl is selected or staging is set to true, use the relevant server
68
87
if [ "$CERTPROVIDER" = "zerossl" ] && [ "$STAGING" = "true" ]; then
69
88
echo "ZeroSSL does not support staging mode, ignoring STAGING variable"
@@ -142,7 +161,7 @@ if [ "$VALIDATION" = "dns" ]; then
142
161
elif [[ "$DNSPLUGIN" =~ ^(google)$ ]]; then
143
162
if [ -n "$PROPAGATION" ]; then PROPAGATIONPARAM="--dns-${DNSPLUGIN}-propagation-seconds ${PROPAGATION}"; fi
echo "*****tls-sni validation has been deprecated, attempting http validation instead"
162
-
elif [ "$VALIDATION" = "duckdns" ]; then
163
-
PREFCHAL="--manual --preferred-challenges dns --manual-auth-hook /app/duckdns-txt"
164
-
chmod +x /app/duckdns-txt
165
-
echo "duckdns validation is selected"
166
-
if [ "$SUBDOMAINS" = "wildcard" ]; then
167
-
echo "the resulting certificate will only cover the subdomains due to a limitation of duckdns, so it is advised to set the root location to use www.subdomain.duckdns.org"
168
-
export URL_REAL="-d *.${URL}"
169
-
else
170
-
echo "the resulting certificate will only cover the main domain due to a limitation of duckdns, ie. subdomain.duckdns.org"
echo "Different validation parameters entered than what was used before. Revoking and deleting existing certificate, and an updated one will be created"
194
202
if [ "$ORIGONLY_SUBDOMAINS" = "true" ] && [ ! "$ORIGSUBDOMAINS" = "wildcard" ]; then
@@ -255,8 +263,6 @@ if [ ! -f "/config/keys/letsencrypt/fullchain.pem" ]; then
255
263
if [ ! -d /config/keys/letsencrypt ]; then
256
264
if [ "$VALIDATION" = "dns" ]; then
257
265
echo "ERROR: Cert does not exist! Please see the validation error above. Make sure you entered correct credentials into the /config/dns-conf/${FILENAME} file."
258
-
elif [ "$VALIDATION" = "duckdns" ]; then
259
-
echo "ERROR: Cert does not exist! Please see the validation error above. Make sure your DUCKDNSTOKEN is correct."
260
266
else
261
267
echo "ERROR: Cert does not exist! Please see the validation error above. The issue may be due to incorrect dns or port forwarding settings. Please fix your settings and recreate the container"
0 commit comments