Compare commits

...

8 Commits

Author SHA1 Message Date
Yusum
84f5a76577
Merge 42542725f7 into 89d2aed46d 2025-01-10 10:39:01 +08:00
Xboard
89d2aed46d Revert "Update 1panel安装指南.md"
Some checks are pending
Docker / build (push) Waiting to run
This reverts commit ae249f8e96.
2025-01-09 23:57:38 +00:00
xboard
cf44a62db7 Revert "Update 1panel安装指南.md"
Some checks failed
Docker / build (push) Has been cancelled
This reverts commit cddcb144ef.
2025-01-09 10:15:24 +08:00
xboard
5b3474a06d Revert "update docker-compose安装指南.md"
This reverts commit dde41da139.
2025-01-09 10:15:21 +08:00
Xboard
dde41da139
update docker-compose安装指南.md
Some checks are pending
Docker / build (push) Waiting to run
2025-01-08 10:43:06 -05:00
Yusum
42542725f7
Update Shadowrocket.php 2024-08-01 21:56:49 +08:00
Yusum
ab34ef327a
Update SingBox.php 2024-08-01 21:21:36 +08:00
Yusum
60ed240e66
Update ClashMeta.php 2024-08-01 21:16:56 +08:00
4 changed files with 8 additions and 14 deletions

View File

@ -194,8 +194,6 @@ class ClashMeta
$array['server'] = $server['host'];
$array['port'] = $server['port'];
$array['uuid'] = $password;
$array['alterId'] = 0;
$array['cipher'] = 'auto';
$array['udp'] = true;
// XTLS流控算法
@ -242,10 +240,8 @@ class ClashMeta
$array['ws-opts']['path'] = $wsSettings['path'];
if (isset($wsSettings['headers']['Host']) && !empty($wsSettings['headers']['Host']))
$array['ws-opts']['headers'] = ['Host' => $wsSettings['headers']['Host']];
if (isset($wsSettings['path']) && !empty($wsSettings['path']))
$array['ws-path'] = $wsSettings['path'];
if (isset($wsSettings['headers']['Host']) && !empty($wsSettings['headers']['Host']))
$array['ws-headers'] = ['Host' => $wsSettings['headers']['Host']];
$array['ws-opts']['max-early-data'] = 2560;
$array['ws-opts']['early-data-header-name'] = 'Sec-WebSocket-Protocol';
}
}
if ($server['network'] === 'grpc') {

View File

@ -190,7 +190,7 @@ class Shadowrocket
if ($server['network_settings']) {
$wsSettings = $server['network_settings'];
if (isset($wsSettings['path']) && !empty($wsSettings['path']))
$config['path'] = $wsSettings['path'];
$config['path'] = $wsSettings['path'] . '?ed=2560';
if (isset($wsSettings['headers']['Host']) && !empty($wsSettings['headers']['Host']))
$config['obfsParam'] = $wsSettings['headers']['Host'];
}

View File

@ -149,7 +149,7 @@ class SingBox
$array['transport']['path'] = $wsSettings['path'];
if (isset($wsSettings['headers']['Host']) && !empty($wsSettings['headers']['Host']))
$array['transport']['headers'] = ['Host' => array($wsSettings['headers']['Host'])];
$array['transport']['max_early_data'] = 2048;
$array['transport']['max_early_data'] = 2560;
$array['transport']['early_data_header_name'] = 'Sec-WebSocket-Protocol';
}
}
@ -217,7 +217,7 @@ class SingBox
$array['transport']['path'] = $wsSettings['path'];
if (isset($wsSettings['headers']['Host']) && !empty($wsSettings['headers']['Host']))
$array['transport']['headers'] = ['Host' => array($wsSettings['headers']['Host'])];
$array['transport']['max_early_data'] = 2048;
$array['transport']['max_early_data'] = 2560;
$array['transport']['early_data_header_name'] = 'Sec-WebSocket-Protocol';
}
}
@ -272,7 +272,7 @@ class SingBox
if (isset($server['network_settings']['headers']['Host'])) {
$array['transport']['headers'] = ['Host' => array($server['network_settings']['headers']['Host'])];
}
$array['transport']['max_early_data'] = 2048;
$array['transport']['max_early_data'] = 2560;
$array['transport']['early_data_header_name'] = 'Sec-WebSocket-Protocol';
}
}

View File

@ -83,15 +83,13 @@
3. 在站点目录中执行以下命令从 Github 克隆到当前目录:
```
git clone https://github.com/cedar2025/Xboard ./
cp docker-compose.sample.yaml docker-compose.yaml
git clone -b docker-compose --depth 1 https://github.com/cedar2025/Xboard ./
```
4. 执行以下命令安装 Xboard
```
docker compose run -it --rm xboard sh init.sh
docker compose run -it --rm xboard php artisan xboard:install
```
5. 根据提示输入上述创建的数据库账号密码,选择使用内置 redis 完成安装。