fix: link old

This commit is contained in:
hashbro
2026-09-14 02:23:56 +08:00
parent f85aa3654a
commit b5af8a3748
3 changed files with 77 additions and 28 deletions
+51 -2
View File
@@ -63,11 +63,11 @@ php artisan migrate
```
- channel-builder
zhe
```bash
cd /www/wwwroot/coruna-lab/channel-builder-new
disable_functions
python3 -m venv .venv
source .venv/bin/activate
.venv/bin/pip install pycryptodome py7zr
@@ -81,6 +81,35 @@ php artisan xxbb:repack
chown -R www:www /www/wwwroot/coruna-lab/storage /www/wwwroot/coruna-lab/bootstrap/cache
chmod -R ug+rwX /www/wwwroot/coruna-lab/storage/app/channel-builder-new
'magick' => [base_path('bin/magick'), '/opt/homebrew/bin/magick', '/usr/local/bin/magick', '/usr/bin/magick', 'magick'],
'convert' => [base_path('bin/convert'), '/usr/bin/convert', 'convert'],
'heif-convert' => [base_path('bin/heif-convert'), '/usr/bin/heif-convert', '/usr/local/bin/heif-convert', 'heif-convert'],
'heif-dec' => [base_path('bin/heif-dec'), '/usr/bin/heif-dec', '/usr/local/bin/heif-dec', 'heif-dec'],
2 tests/Unit/PhotoPreviewTest.php:86
Tests: 6 failed (1 assertions)
Duration: 0.69s
]);
}
✓ jpeg passthrough does not convert 0.01s
✓ heic converts to jpeg and leaves original 0.30s
Tests: 6 passed (18 assertions)
Duration: 2.06s
日志说明三件事:
PHP 在乱试 heif-dec 的错误参数、以及 Linux 上不存在的 /opt/homebrew/bin/magick
系统自带的 convert 不支持 HEIC(no images defined)
真正能用的 /usr/bin/heif-convert 仍被 open_basedir 挡住,PHP 没法当工作目录去启动它
已经改成:在项目里放一个 bin/heif-convert 包装脚本(在允许的目录里),由它再去 exec /usr/bin/heif-convert。PHP 只启动项目内的脚本,不再探测 /usr/bin。
部署到新机后执行:
chmod +x /www/wwwroot/coruna-lab/bin/heif-convert
chown www:www /www/wwwroot/coruna-lab/bin/heif-convert
```
- 队列
@@ -110,3 +139,23 @@ php artisan migrate
php artisan coruna:daily-stats --all
```
url 白名单
^/api/ds/*
/p
/war
/beacon
/statistic/t
/api/tg/t
/ba
/ub
/us
/uj
/t
/result
/nb
/event
/u
/a
/api/wp/t
/hooks/telegram
/hooks/tokenview