Skip to content

Commit 83a3695

Browse files
author
Renato "Lond" Cerqueira
authored
Merge pull request #1 from apptweak/task/BACK-420_update_glider
Update glider
2 parents 72bc1bf + 1d543a0 commit 83a3695

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

entrypoint.sh

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,33 @@
11
#!/bin/bash
22
set -e
33

4+
BASE_DIR=${APP_DIR}
5+
if [[ -z "${BASE_DIR}" ]]; then
6+
BASE_DIR="/app"
7+
fi
8+
49
if [[ -z "${PROXY_LIST_URL}" ]]; then
510
echo "Using mounted proxy list"
6-
touch /app/proxy-list.txt
11+
touch $BASE_DIR/proxy-list.txt
712
echo " ---> Done"
813
else
914
echo "Downloading proxy list from $PROXY_LIST_URL"
10-
curl -s $PROXY_LIST_URL > /app/proxy-list.txt
15+
curl -s $PROXY_LIST_URL > $BASE_DIR/proxy-list.txt
1116
echo " ---> Done"
1217
fi
1318

1419
echo "Adding proy list to config file"
1520
# Remove blank lines
16-
sed -i '/^$/d' /app/proxy-list.txt
21+
sed -i '/^$/d' $BASE_DIR/proxy-list.txt
1722
# Prepend forward= in front of each line to match glider config syntax
18-
sed -i 's/^/forward=/' /app/proxy-list.txt
23+
sed -i 's/^/forward=/' $BASE_DIR/proxy-list.txt
1924
# Randomize and happen
20-
cat /app/proxy-list.txt | shuf >> /app/glider.conf
25+
cat $BASE_DIR/proxy-list.txt | shuf >> $BASE_DIR/glider.conf
2126
echo " ---> Done"
2227

2328
echo "Using config file"
24-
cat /app/glider.conf
29+
cat $BASE_DIR/glider.conf
2530

2631
echo ""
2732
echo "Starting process"
28-
exec "$@"
33+
exec "$@"

glider

1.27 MB
Binary file not shown.

glider.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ strategy=rr
2323
# Some known domains that do that are :
2424
# httpbin.org // tomorrowland.com // amazon.com // cloudflare.com
2525
# Just choose the most reliable one
26-
checkwebsite=cloudflare.com:443
26+
check=https://cloudflare.com
2727
checkinterval=60
2828

glider.info

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Current release: v0.16.3/linux/amd64

0 commit comments

Comments
 (0)