rachkovii68 commited on
Commit
62ca371
·
1 Parent(s): 8585315

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +10 -13
start.sh CHANGED
@@ -1,4 +1,4 @@
1
- ##!/bin/bash
2
  # ==============================================================================
3
  # WARP + X-UI & Chisel Tunnel Start Script
4
  # ==============================================================================
@@ -29,12 +29,10 @@ run_warp() {
29
  PrivateKey = $PRIVATE_KEY
30
  Address = 172.16.0.2/32
31
  DNS = 1.1.1.1
32
-
33
  [Peer]
34
  PublicKey = $PUBLIC_KEY
35
  Endpoint = $ENDPOINT
36
  PersistentKeepalive = 25
37
-
38
  [Socks5]
39
  BindAddress = 127.0.0.1:40000
40
  EOF
@@ -51,7 +49,7 @@ EOF
51
  run_chisel() {
52
  while true; do
53
  echo "Starting chisel client..."
54
- /usr/local/bin/chisel client -v --auth "cloud:2025" "https://vds1.iri1968.dpdns.org/chisel-ws" R:8001:127.0.0.1:2053
55
 
56
  echo "Chisel client exited. Restarting in 5 seconds..."
57
  sleep 5
@@ -63,7 +61,7 @@ run_chisel() {
63
  echo "Starting sync job in a background loop..."
64
  (
65
  while true; do
66
- /usr/local/bin/sync.sh >> /var/log/cron.log 2>&1
67
  sleep 60
68
  done
69
  ) &
@@ -79,22 +77,21 @@ run_chisel &
79
  # Wait a moment for the background process to establish the tunnel.
80
  sleep 3
81
 
82
- mkdir -p /data/x-ui
83
- ln -s /data/x-ui /etc/x-ui
84
 
85
  # 3. Configure X-UI Panel
86
- cd /app
87
 
88
  echo "Configuring x-ui panel port..."
89
- /usr/local/x-ui/x-ui setting -port 2053
90
 
91
  echo "Configuring x-ui web base path..."
92
- /usr/local/x-ui/x-ui setting -webBasePath /
93
 
94
  echo "Resetting x-ui admin credentials..."
95
- /usr/local/x-ui/x-ui setting -username prog10 -password 04091968
96
 
97
  # 4. Start X-UI Panel
98
  echo "Starting x-ui panel..."
99
- cd /usr/local/x-ui
100
- ./x-ui
 
1
+ #!/bin/bash
2
  # ==============================================================================
3
  # WARP + X-UI & Chisel Tunnel Start Script
4
  # ==============================================================================
 
29
  PrivateKey = $PRIVATE_KEY
30
  Address = 172.16.0.2/32
31
  DNS = 1.1.1.1
 
32
  [Peer]
33
  PublicKey = $PUBLIC_KEY
34
  Endpoint = $ENDPOINT
35
  PersistentKeepalive = 25
 
36
  [Socks5]
37
  BindAddress = 127.0.0.1:40000
38
  EOF
 
49
  run_chisel() {
50
  while true; do
51
  echo "Starting chisel client..."
52
+ /usr/local/bin/chisel client -v --auth "cloud:2025" "https://vds1.iri1968.dpdns.org/chisel-ws" R:8000:127.0.0.1:2023
53
 
54
  echo "Chisel client exited. Restarting in 5 seconds..."
55
  sleep 5
 
61
  echo "Starting sync job in a background loop..."
62
  (
63
  while true; do
64
+ /usr/local/bin/sync.sh >> /config/cron.log 2>&1
65
  sleep 60
66
  done
67
  ) &
 
77
  # Wait a moment for the background process to establish the tunnel.
78
  sleep 3
79
 
80
+
 
81
 
82
  # 3. Configure X-UI Panel
83
+ cd /opt/x-ui/x-ui
84
 
85
  echo "Configuring x-ui panel port..."
86
+ /opt/x-ui/x-ui/x-ui setting -port 2023
87
 
88
  echo "Configuring x-ui web base path..."
89
+ /opt/x-ui/x-ui/x-ui setting -webBasePath /
90
 
91
  echo "Resetting x-ui admin credentials..."
92
+ /opt/x-ui/x-ui/x-ui setting -username prog10 -password 04091968
93
 
94
  # 4. Start X-UI Panel
95
  echo "Starting x-ui panel..."
96
+ cd /opt/x-ui/x-ui
97
+ ./x-ui