native linux proxy support

This commit is contained in:
cynic 2024-08-17 04:49:50 +00:00
parent 9e613a33d1
commit 6a93a32d81

View File

@ -4,7 +4,7 @@
# define variables # define variables
# enable proxychains? # enable proxychains?
proxychains=false proxychains=true
# wait for this many seconds before trying certificate issuance/renewal # wait for this many seconds before trying certificate issuance/renewal
wait_before_renew=30 wait_before_renew=30
@ -16,7 +16,8 @@ bridge46_ipv4="207.127.103.198"
provider="mesh.cat" provider="mesh.cat"
# whoami service # whoami service
whoami_url="https://ygg.mesh.cat/whoami" whoami_domain="ygg.mesh.cat"
whoami_url="https://$whoami_domain/whoami"
# mesh domain provider alternative dns port for acme challenge and bridge46 A records # mesh domain provider alternative dns port for acme challenge and bridge46 A records
alternative_dns_port="53536" alternative_dns_port="53536"
@ -48,10 +49,10 @@ _exists() {
_get="" _get=""
_get_is="" _get_is=""
if _exists curl && [ "${ACME_USE_WGET:-0}" = "0" ]; then if _exists curl && [ "${ACME_USE_WGET:-0}" = "0" ]; then
_get="curl -s -L" _get="curl --noproxy $whoami_domain -s -L"
_get_is="curl" _get_is="curl"
elif _exists wget ; then elif _exists wget ; then
_get="wget -O -" _get="wget --no-proxy -O -"
_get_is="wget" _get_is="wget"
else else
echo "Sorry, you must have curl or wget installed first." echo "Sorry, you must have curl or wget installed first."
@ -115,11 +116,11 @@ if [ "$proxychains" = true ] ; then
fi fi
fi fi
# register zerossl account # register zerossl account ## we're using letsencrypt by the moment
$acme_cmd \ #$acme_cmd \
--register-account \ # --register-account \
-m admin@$domain \ # -m admin@$domain \
--server zerossl # --server zerossl
# get challenge # get challenge
timestamp=`date +"%Y%m%d%H%M%S"` timestamp=`date +"%Y%m%d%H%M%S"`