zory 3 weeks ago
parent
commit
3dee43dfec
3 changed files with 4 additions and 72 deletions
  1. 0 42
      app/controller/IndexController.php
  2. 2 15
      config/process.php
  3. 2 15
      config/server.php

+ 0 - 42
app/controller/IndexController.php

@@ -1,42 +0,0 @@
-<?php
-
-namespace app\controller;
-
-use support\Request;
-
-class IndexController
-{
-    public function index(Request $request)
-    {
-        return <<<EOF
-<style>
-  * {
-    padding: 0;
-    margin: 0;
-  }
-  iframe {
-    border: none;
-    overflow: scroll;
-  }
-</style>
-<iframe
-  src="https://www.workerman.net/wellcome"
-  width="100%"
-  height="100%"
-  allow="clipboard-write"
-  sandbox="allow-scripts allow-same-origin allow-popups"
-></iframe>
-EOF;
-    }
-
-    public function view(Request $request)
-    {
-        return view('index/view', ['name' => 'webman']);
-    }
-
-    public function json(Request $request)
-    {
-        return json(['code' => 0, 'msg' => 'ok']);
-    }
-
-}

+ 2 - 15
config/process.php

@@ -1,17 +1,4 @@
 <?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
- */
-
 use support\Log;
 use support\Request;
 use app\process\Http;
@@ -19,9 +6,9 @@ use app\process\Http;
 global $argv;
 
 return [
-    'webman' => [
+    'wash' => [
         'handler' => Http::class,
-        'listen' => 'http://0.0.0.0:8787',
+        'listen' => 'http://0.0.0.0:8790',
         'count' => cpu_count() * 4,
         'user' => '',
         'group' => '',

+ 2 - 15
config/server.php

@@ -1,22 +1,9 @@
 <?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 [
     'event_loop' => '',
     'stop_timeout' => 2,
-    'pid_file' => runtime_path() . '/webman.pid',
-    'status_file' => runtime_path() . '/webman.status',
+    'pid_file' => runtime_path() . '/wash.pid',
+    'status_file' => runtime_path() . '/wash.status',
     'stdout_file' => runtime_path() . '/logs/stdout.log',
     'log_file' => runtime_path() . '/logs/workerman.log',
     'max_package_size' => 10 * 1024 * 1024