fix: statisc
This commit is contained in:
+20
-13
@@ -5,10 +5,10 @@
|
||||
## 架构
|
||||
|
||||
|
||||
| 角色 | 项目 / 路径 | 对外 | 进程 |
|
||||
| ---------- | ------------------------------- | --------------------------- | --------------- |
|
||||
| C2 / Admin / 静态 | `coruna-lab`(`public/`) | `https://admin.example.com` | Nginx + PHP-FPM |
|
||||
| 构建工具 | `coruna-lab/channel-builder` | 无(PHP Process 调用) | Python venv |
|
||||
| 角色 | 项目 / 路径 | 对外 | 进程 |
|
||||
| --------------- | ---------------------------- | --------------------------- | --------------- |
|
||||
| C2 / Admin / 静态 | `coruna-lab`(`public/`) | `https://admin.example.com` | Nginx + PHP-FPM |
|
||||
| 构建工具 | `coruna-lab/channel-builder` | 无(PHP Process 调用) | Python venv |
|
||||
|
||||
|
||||
```text
|
||||
@@ -109,7 +109,7 @@ chown -R www:www /www/wwwroot/coruna-lab/public /www/wwwroot/coruna-lab/storage
|
||||
|
||||
### 1.2 静态路径(写在 Admin 站点 public/)
|
||||
|
||||
产物默认落在 **Laravel `public/`**,与 Admin 同站即可,无需单独静态站点:
|
||||
产物默认落在 **Laravel** `public/`,与 Admin 同站即可,无需单独静态站点:
|
||||
|
||||
```text
|
||||
https://admin.example.com/web/<id>/support.html
|
||||
@@ -171,6 +171,11 @@ curl -sS https://getcomposer.org/installer \
|
||||
|
||||
cd /www/wwwroot/coruna-lab
|
||||
/www/server/php/82/bin/php /usr/local/bin/composer install --no-dev --optimize-autoloader
|
||||
|
||||
composer self-update
|
||||
|
||||
composer install --no-dev --optimize-autoloader
|
||||
|
||||
```
|
||||
|
||||
常见错误见文末「排错」。
|
||||
@@ -318,7 +323,7 @@ cd /www/wwwroot/coruna-lab
|
||||
tail -n 100 /www/wwwroot/coruna-lab/storage/logs/laravel.log
|
||||
```
|
||||
|
||||
2. 若日志完全无变化,再查 PHP-FPM / Nginx(可能未写到 `laravel.log`):
|
||||
1. 若日志完全无变化,再查 PHP-FPM / Nginx(可能未写到 `laravel.log`):
|
||||
|
||||
```bash
|
||||
ls -la /www/wwwroot/coruna-lab/storage/logs/
|
||||
@@ -327,13 +332,13 @@ tail -n 80 /www/wwwlogs/yxouw.cc.error.log
|
||||
tail -n 80 /www/server/php/82/var/log/php-fpm.log
|
||||
```
|
||||
|
||||
3. `getWebhookInfo` 中 `pending_update_count > 0` 且 `last_error_message` 含 500:部署含「webhook 始终 ACK」的修复后,重新:
|
||||
1. `getWebhookInfo` 中 `pending_update_count > 0` 且 `last_error_message` 含 500:部署含「webhook 始终 ACK」的修复后,重新:
|
||||
|
||||
```bash
|
||||
/www/server/php/82/bin/php artisan telegram:set-webhook
|
||||
```
|
||||
|
||||
4. 群无回复但日志有 `AuthorizedChat: chat rejected`:把 `TELEGRAM_OWNER_CHAT_ID`(或后台设置)改成日志里的真实 `chat_id`(超群多为 `-100...`),再 `config:clear`。
|
||||
1. 群无回复但日志有 `AuthorizedChat: chat rejected`:把 `TELEGRAM_OWNER_CHAT_ID`(或后台设置)改成日志里的真实 `chat_id`(超群多为 `-100...`),再 `config:clear`。
|
||||
|
||||
可选(地址监控):若启用 Tokenview,可另执行:
|
||||
|
||||
@@ -363,12 +368,12 @@ tail -n 80 /www/server/php/82/var/log/php-fpm.log
|
||||
## 4. 日常运维
|
||||
|
||||
|
||||
| 动作 | 命令 / 操作 |
|
||||
| ---------- | --------------------------------------------------------------- |
|
||||
| 更新 builder | 拉代码 → `channel-builder/.venv` 内 `pip install -r requirements.txt` |
|
||||
| 更新 lab | 拉代码 → `composer install` → `artisan migrate` → `config:cache` 等 |
|
||||
| 动作 | 命令 / 操作 |
|
||||
| ---------- | -------------------------------------------------------------------- |
|
||||
| 更新 builder | 拉代码 → `channel-builder/.venv` 内 `pip install -r requirements.txt` |
|
||||
| 更新 lab | 拉代码 → `composer install` → `artisan migrate` → `config:cache` 等 |
|
||||
| 备份 | MySQL + `public/web` + `public/sync` + `storage/app/channel-builder` |
|
||||
| 构建超时 | 加大 `CORUNA_CHANNEL_BUILDER_TIMEOUT` 与 PHP `max_execution_time` |
|
||||
| 构建超时 | 加大 `CORUNA_CHANNEL_BUILDER_TIMEOUT` 与 PHP `max_execution_time` |
|
||||
|
||||
|
||||
当前 `QUEUE_CONNECTION=sync`,一般无需单独 queue worker。
|
||||
@@ -452,6 +457,8 @@ CLI 默认不限制;改网站用的 FPM `php.ini` 并以 `phpinfo()` 验证。
|
||||
- 可选 Google Authenticator:登录后「安全 → 谷歌验证」绑定
|
||||
- 部署后需执行迁移:`php artisan migrate`(admins 增加 status / google_* / last_ip)
|
||||
|
||||
|
||||
|
||||
### 后台登录 HTTP 419(Page Expired)
|
||||
|
||||
请求已进 Laravel,多为 CSRF / Session。确认:
|
||||
|
||||
Reference in New Issue
Block a user