Spaces:
Paused
Paused
Commit ·
902ec94
1
Parent(s): f5cdbd1
Update start.sh
Browse files
start.sh
CHANGED
|
@@ -3,14 +3,11 @@
|
|
| 3 |
# Set a writable directory for the x-ui database
|
| 4 |
export XUI_DB_FOLDER=/tmp
|
| 5 |
|
| 6 |
-
# Start socat proxy
|
| 7 |
-
socat TCP-LISTEN:9000,fork,reuseaddr TCP:vds1.iri1968.dpdns.org:443 &
|
| 8 |
-
|
| 9 |
# Function to run chisel client in a loop
|
| 10 |
run_chisel() {
|
| 11 |
while true; do
|
| 12 |
-
echo "Starting chisel client..."
|
| 13 |
-
/usr/local/bin/chisel client -v --auth "cloud:2025" --
|
| 14 |
echo "Chisel client exited. Restarting in 5 seconds..."
|
| 15 |
sleep 5
|
| 16 |
done
|
|
@@ -34,4 +31,4 @@ sleep 2
|
|
| 34 |
# Start x-ui in the foreground
|
| 35 |
echo "Starting x-ui panel..."
|
| 36 |
cd /usr/local/x-ui
|
| 37 |
-
./x-ui
|
|
|
|
| 3 |
# Set a writable directory for the x-ui database
|
| 4 |
export XUI_DB_FOLDER=/tmp
|
| 5 |
|
|
|
|
|
|
|
|
|
|
| 6 |
# Function to run chisel client in a loop
|
| 7 |
run_chisel() {
|
| 8 |
while true; do
|
| 9 |
+
echo "Starting chisel client with mTLS..."
|
| 10 |
+
/usr/local/bin/chisel client -v --auth "cloud:2025" --tls-cert /etc/chisel/client.crt --tls-key /etc/chisel/client.key --tls-ca /etc/chisel/ca.crt https://vds1.iri1968.dpdns.org R:2023:127.0.0.1:2023
|
| 11 |
echo "Chisel client exited. Restarting in 5 seconds..."
|
| 12 |
sleep 5
|
| 13 |
done
|
|
|
|
| 31 |
# Start x-ui in the foreground
|
| 32 |
echo "Starting x-ui panel..."
|
| 33 |
cd /usr/local/x-ui
|
| 34 |
+
./x-ui
|