Spaces:
Running
Running
Update start.sh
Browse files
start.sh
CHANGED
|
@@ -4,6 +4,7 @@ set -e
|
|
| 4 |
echo "[UPDATER] Fetching proxy list..."
|
| 5 |
curl -fsSL https://raw.githubusercontent.com/mishableskineetudiant-stack/proxylistfiltered/main/proxies_elite.txt > proxies.txt
|
| 6 |
|
|
|
|
| 7 |
(
|
| 8 |
while true; do
|
| 9 |
sleep 300
|
|
@@ -14,12 +15,12 @@ curl -fsSL https://raw.githubusercontent.com/mishableskineetudiant-stack/proxyli
|
|
| 14 |
|
| 15 |
echo "[MAIN] Starting rotating-mitmproxy..."
|
| 16 |
|
|
|
|
| 17 |
python -m rotating_mitmproxy \
|
| 18 |
--proxy-list proxies.txt \
|
| 19 |
-
--
|
| 20 |
-
--listen-port 3129 \
|
| 21 |
--strategy smart \
|
| 22 |
-
--
|
| 23 |
|
| 24 |
echo "[MAIN] Starting HF health server..."
|
| 25 |
python /app/health.py
|
|
|
|
| 4 |
echo "[UPDATER] Fetching proxy list..."
|
| 5 |
curl -fsSL https://raw.githubusercontent.com/mishableskineetudiant-stack/proxylistfiltered/main/proxies_elite.txt > proxies.txt
|
| 6 |
|
| 7 |
+
# Loop de mise à jour toutes les 5 minutes
|
| 8 |
(
|
| 9 |
while true; do
|
| 10 |
sleep 300
|
|
|
|
| 15 |
|
| 16 |
echo "[MAIN] Starting rotating-mitmproxy..."
|
| 17 |
|
| 18 |
+
# Lancement proxy rotatif
|
| 19 |
python -m rotating_mitmproxy \
|
| 20 |
--proxy-list proxies.txt \
|
| 21 |
+
--port 3129 \
|
|
|
|
| 22 |
--strategy smart \
|
| 23 |
+
--web-port 8081 &
|
| 24 |
|
| 25 |
echo "[MAIN] Starting HF health server..."
|
| 26 |
python /app/health.py
|