refactor: rename ws-server command and update configuration

This commit is contained in:
xboard
2026-03-15 10:57:21 +08:00
parent 98a4964c7c
commit 199c146672
6 changed files with 6 additions and 6 deletions

View File

@@ -65,7 +65,7 @@ priority=300
[program:ws-server]
process_name=%(program_name)s_%(process_num)02d
command=php /www/artisan xboard:ws-server start
command=php /www/artisan ws-server start
autostart=%(ENV_ENABLE_WS_SERVER)s
autorestart=true
user=www

View File

@@ -16,7 +16,7 @@ use Workerman\Worker;
class NodeWebSocketServer extends Command
{
protected $signature = 'xboard:ws-server
protected $signature = 'ws-server
{action=start : start | stop | restart | reload | status}
{--d : Start in daemon mode}
{--host=0.0.0.0 : Listen address}

View File

@@ -28,7 +28,7 @@ services:
- ./:/www/
restart: always
network_mode: host
command: php artisan xboard:ws-server start
command: php artisan ws-server start
depends_on:
- redis
redis:

View File

@@ -59,7 +59,7 @@ location ^~ / {
proxy_cache off;
}
```
> The `/ws/` location enables WebSocket real-time node synchronization via `xboard:ws-server`. This service is enabled by default and can be toggled in Admin Panel > System Settings > Server.
> The `/ws/` location enables WebSocket real-time node synchronization via `ws-server`. This service is enabled by default and can be toggled in Admin Panel > System Settings > Server.
3. Install Xboard:
```bash

View File

@@ -110,7 +110,7 @@ location ^~ / {
proxy_cache off;
}
```
> The `/ws/` location enables real-time node synchronization via `xboard:ws-server`. This service is enabled by default and can be toggled in Admin Panel > System Settings > Server.
> The `/ws/` location enables real-time node synchronization via `ws-server`. This service is enabled by default and can be toggled in Admin Panel > System Settings > Server.
## Maintenance Guide

View File

@@ -184,7 +184,7 @@ Add a WebSocket daemon process in aaPanel Supervisor:
- Name: `Xboard-WS`
- Run User: `www`
- Running Directory: Site directory
- Start Command: `php artisan xboard:ws-server start`
- Start Command: `php artisan ws-server start`
- Process Count: 1
### 2. Configure Nginx