mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-06-03 06:07:20 +02:00
38 lines
820 B
Bash
38 lines
820 B
Bash
#!/usr/bin/env bash
|
|
|
|
update-ca-certificates
|
|
echo "CA certificates updated."
|
|
|
|
zoraxy -update_geoip=true
|
|
echo "Updated GeoIP data."
|
|
|
|
if [ "$ZEROTIER" = "true" ]; then
|
|
if [ ! -d "/opt/zoraxy/config/zerotier/" ]; then
|
|
mkdir -p /opt/zoraxy/config/zerotier/
|
|
fi
|
|
ln -s /opt/zoraxy/config/zerotier/ /var/lib/zerotier-one
|
|
zerotier-one -d
|
|
echo "ZeroTier daemon started."
|
|
fi
|
|
|
|
echo "Starting Zoraxy..."
|
|
exec zoraxy \
|
|
-autorenew="$AUTORENEW" \
|
|
-cfgupgrade="$CFGUPGRADE" \
|
|
-db="$DB" \
|
|
-docker="$DOCKER" \
|
|
-earlyrenew="$EARLYRENEW" \
|
|
-fastgeoip="$FASTGEOIP" \
|
|
-mdns="$MDNS" \
|
|
-mdnsname="$MDNSNAME" \
|
|
-noauth="$NOAUTH" \
|
|
-port=:"$PORT" \
|
|
-sshlb="$SSHLB" \
|
|
-update_geoip="$UPDATE_GEOIP" \
|
|
-version="$VERSION" \
|
|
-webfm="$WEBFM" \
|
|
-webroot="$WEBROOT" \
|
|
-ztauth="$ZTAUTH" \
|
|
-ztport="$ZTPORT"
|
|
|