MB-IDK commited on
Commit
42f0287
·
verified ·
1 Parent(s): abcf292

Create start.sh

Browse files
Files changed (1) hide show
  1. start.sh +26 -0
start.sh ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -e
3
+
4
+ echo "[UPDATER] Fetching proxy list..."
5
+ curl -s https://raw.githubusercontent.com/mishableskineetudiant-stack/proxylistfiltered/main/proxies_elite.txt > proxies.txt
6
+
7
+ # reload toutes les 5 minutes
8
+ (
9
+ while true; do
10
+ sleep 300
11
+ echo "[UPDATER] Updating proxy list..."
12
+ curl -s https://raw.githubusercontent.com/mishableskineetudiant-stack/proxylistfiltered/main/proxies_elite.txt > proxies.txt
13
+ done
14
+ ) &
15
+
16
+ echo "[MAIN] Starting rotating-mitmproxy..."
17
+
18
+ python -m rotating_mitmproxy \
19
+ --proxies-file proxies.txt \
20
+ --listen-host 0.0.0.0 \
21
+ --listen-port 3129 \
22
+ --strategy smart \
23
+ --min-health 0.6 &
24
+
25
+ echo "[MAIN] Starting HF health server..."
26
+ python /app/health.py