init
This commit is contained in:
+1
-4
@@ -176,9 +176,6 @@ return [
|
||||
$record['Level'] = str_pad(strtoupper($record['level_name']), 5);
|
||||
return $record;
|
||||
}
|
||||
],
|
||||
'ignore' => [
|
||||
app_path() . '/flow/config/AbstractConfig.php'
|
||||
],
|
||||
]
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
return [
|
||||
'enable' => true,
|
||||
];
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
return [
|
||||
Webman\Event\BootStrap::class,
|
||||
];
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Webman\Event\EventListCommand;
|
||||
|
||||
return [
|
||||
EventListCommand::class
|
||||
];
|
||||
+1
-7
@@ -22,7 +22,7 @@ global $argv;
|
||||
return [
|
||||
'webman' => [
|
||||
'handler' => Http::class,
|
||||
'listen' => 'http://0.0.0.0:8787',
|
||||
'listen' => 'http://'.Config::getInstance()->httpIP.":".Config::getInstance()->httpPort,
|
||||
// 'count' => cpu_count() * 4,
|
||||
'count' => 1,
|
||||
'user' => '',
|
||||
@@ -61,10 +61,4 @@ return [
|
||||
]
|
||||
]
|
||||
],
|
||||
'TcpServer' => [
|
||||
'handler' => app\process\TcpServer::class,
|
||||
'listen' => 'tcp://0.0.0.0:'. Config::getInstance()->tcpServerPort,
|
||||
'count' => Config::getInstance()->tcpServerProcessNum,
|
||||
'reusePort' => true,
|
||||
],
|
||||
];
|
||||
|
||||
@@ -14,6 +14,19 @@
|
||||
|
||||
use Webman\Route;
|
||||
|
||||
// 页面路由 - 重定向到静态HTML
|
||||
Route::get('/', [app\controller\IndexController::class, 'index']);
|
||||
Route::get('/roi', [app\controller\IndexController::class, 'roi']);
|
||||
|
||||
// API路由
|
||||
Route::get('/streams', [app\controller\IndexController::class, 'streams']);
|
||||
Route::get('/status', [app\controller\IndexController::class, 'status']);
|
||||
Route::get('/getRoi', [app\controller\IndexController::class, 'getRoi']);
|
||||
Route::post('/saveRoi', [app\controller\IndexController::class, 'saveRoi']);
|
||||
|
||||
// ZLM截图代理
|
||||
Route::get('/proxy/zlm/snap', [app\controller\IndexController::class, 'proxyZlmSnap']);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user