File tree Expand file tree Collapse file tree 4 files changed +14
-8
lines changed Expand file tree Collapse file tree 4 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
+ BASE_DIR=${APP_DIR}
5
+ if [[ -z " ${BASE_DIR} " ]]; then
6
+ BASE_DIR=" /app"
7
+ fi
8
+
4
9
if [[ -z " ${PROXY_LIST_URL} " ]]; then
5
10
echo " Using mounted proxy list"
6
- touch /app /proxy-list.txt
11
+ touch $BASE_DIR /proxy-list.txt
7
12
echo " ---> Done"
8
13
else
9
14
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
11
16
echo " ---> Done"
12
17
fi
13
18
14
19
echo " Adding proy list to config file"
15
20
# Remove blank lines
16
- sed -i ' /^$/d' /app /proxy-list.txt
21
+ sed -i ' /^$/d' $BASE_DIR /proxy-list.txt
17
22
# 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
19
24
# 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
21
26
echo " ---> Done"
22
27
23
28
echo " Using config file"
24
- cat /app /glider.conf
29
+ cat $BASE_DIR /glider.conf
25
30
26
31
echo " "
27
32
echo " Starting process"
28
- exec " $@ "
33
+ exec " $@ "
Original file line number Diff line number Diff line change @@ -23,6 +23,6 @@ strategy=rr
23
23
# Some known domains that do that are :
24
24
# httpbin.org // tomorrowland.com // amazon.com // cloudflare.com
25
25
# Just choose the most reliable one
26
- checkwebsite= cloudflare.com:443
26
+ check=https:// cloudflare.com
27
27
checkinterval=60
28
28
Original file line number Diff line number Diff line change
1
+ Current release: v0.16.3/linux/amd64
You can’t perform that action at this time.
0 commit comments