diff --git a/__debug_bin b/__debug_bin deleted file mode 100755 index f7167c5..0000000 Binary files a/__debug_bin and /dev/null differ diff --git a/gohttpd.log b/gohttpd.log deleted file mode 100644 index f5f8bb9..0000000 --- a/gohttpd.log +++ /dev/null @@ -1,130 +0,0 @@ -[2023-12-15 21:19:44] Server : info - Load config success -[2023-12-15 21:19:44] Server : info - start gohttpd -[2023-12-15 21:19:44] ServerMux : debug - NewServeMux -[2023-12-15 21:19:44] ServerMux : debug - NewServeMux -[2023-12-15 21:19:44] Listener : debug - listen on :8088 -[2023-12-15 21:19:44] Listener : debug - listen on :8080 -[2023-12-15 21:19:44] Server : info - gohttpd start success -[2023-12-15 21:20:07] Server : info - Load config success -[2023-12-15 21:20:07] Server : info - start gohttpd -[2023-12-15 21:20:07] ServerMux : debug - NewServeMux -[2023-12-15 21:20:07] ServerMux : debug - NewServeMux -[2023-12-15 21:20:07] Listener : debug - listen on :8088 -[2023-12-15 21:20:07] Listener : debug - listen on :8080 -[2023-12-15 21:20:07] Server : info - gohttpd start success -[2023-12-15 21:20:21] Server : info - Load config success -[2023-12-15 21:20:21] Server : info - start gohttpd -[2023-12-15 21:20:21] ServerMux : debug - NewServeMux -[2023-12-15 21:20:21] ServerMux : debug - NewServeMux -[2023-12-15 21:20:21] Listener : debug - listen on :8088 -[2023-12-15 21:20:21] Listener : debug - listen on :8080 -[2023-12-15 21:20:21] Server : info - gohttpd start success -[2023-12-15 21:20:32] Server : info - Load config success -[2023-12-15 21:20:32] Server : info - start gohttpd -[2023-12-15 21:20:32] ServerMux : debug - NewServeMux -[2023-12-15 21:22:08] Server : info - Load config success -[2023-12-15 21:22:08] Server : info - start gohttpd -[2023-12-15 21:22:08] ServerMux : debug - NewServeMux -[2023-12-15 21:22:44] Server : info - Load config success -[2023-12-15 21:22:44] Server : info - start gohttpd -[2023-12-15 21:22:44] ServerMux : debug - NewServeMux -[2023-12-15 21:28:05] Server : info - Load config success -[2023-12-15 21:28:05] Server : info - start gohttpd -[2023-12-15 21:28:05] ServerMux : debug - NewServeMux -[2023-12-15 21:28:08] ServerMux : debug - add directive: Set-Header -[2023-12-15 21:28:08] ServerMux : debug - add directive: Set-Header -[2023-12-15 21:28:08] ServerMux : debug - add directive: Set-Header -[2023-12-15 21:28:08] ServerMux : debug - NewServeMux -[2023-12-15 21:28:08] Listener : debug - listen on :8088 -[2023-12-15 21:28:08] Listener : debug - listen on :8080 -[2023-12-15 21:28:08] Server : info - gohttpd start success -[2023-12-15 21:28:16] ServerMux : info - match path: /api/ -[2023-12-15 21:28:18] Route : debug - match route: GET /about -[2023-12-15 21:28:18] URLMatcher : debug - Match for /about -[2023-12-15 21:28:18] Route : debug - Not match matcher reg -[2023-12-15 21:28:19] Route : debug - match route: GET /about -[2023-12-15 21:28:53] ServerMux : info - match path: /api/ -[2023-12-15 21:29:28] Route : debug - match route: GET /about -[2023-12-15 21:29:28] URLMatcher : debug - Match for /about -[2023-12-15 21:29:28] Route : debug - Not match matcher reg -[2023-12-15 21:29:28] Route : debug - match route: GET /about -[2023-12-15 21:31:20] Server : info - Load config success -[2023-12-15 21:31:20] Server : info - start gohttpd -[2023-12-15 21:31:20] ServerMux : debug - NewServeMux -[2023-12-15 21:31:20] ServerMux : debug - add directive: Set-Header -[2023-12-15 21:31:20] ServerMux : debug - add directive: Set-Header -[2023-12-15 21:31:20] ServerMux : debug - add directive: Set-Header -[2023-12-15 21:31:20] ServerMux : debug - NewServeMux -[2023-12-15 21:31:20] Listener : debug - listen on :8080 -[2023-12-15 21:31:20] Listener : debug - listen on :8088 -[2023-12-15 21:31:20] Server : info - gohttpd start success -[2023-12-15 21:31:30] ServerMux : info - match path: /api/ -[2023-12-15 21:31:30] Directive : debug - Set-HeaderAccess-Control-Allow-Origin:* -[2023-12-15 21:31:30] Directive : debug - Set-HeaderAccess-Control-Allow-Methods:GET, -[2023-12-15 21:31:30] Directive : debug - Set-HeaderAccess-Control-Allow-Headers:Content-Type, -[2023-12-15 21:31:30] Route : debug - match route: GET /about -[2023-12-15 21:31:30] URLMatcher : debug - Match for /about -[2023-12-15 21:31:30] Route : debug - Not match matcher reg -[2023-12-15 21:31:30] Route : debug - match route: GET /about -[2023-12-15 21:33:58] Server : info - Load config success -[2023-12-15 21:33:58] Server : info - start gohttpd -[2023-12-15 21:33:58] ServerMux : debug - NewServeMux -[2023-12-15 21:33:58] ServerMux : debug - add directive: Set-Header -[2023-12-15 21:33:58] ServerMux : debug - add directive: Set-Header -[2023-12-15 21:33:58] ServerMux : debug - add directive: Set-Header -[2023-12-15 21:33:58] ServerMux : debug - NewServeMux -[2023-12-15 21:33:58] Listener : debug - listen on :8088 -[2023-12-15 21:33:58] Listener : debug - listen on :8080 -[2023-12-15 21:33:58] Server : info - gohttpd start success -[2023-12-15 21:34:08] ServerMux : info - match path: /api/ -[2023-12-15 21:34:08] Directive : debug - Set-HeaderAccess-Control-Allow-Origin:* -[2023-12-15 21:34:08] Directive : debug - Set-HeaderAccess-Control-Allow-Methods:GET, -[2023-12-15 21:34:08] Directive : debug - Set-HeaderAccess-Control-Allow-Headers:Content-Type, -[2023-12-15 21:34:08] Route : debug - match route: GET /about -[2023-12-15 21:34:08] URLMatcher : debug - Match for /about -[2023-12-15 21:34:08] Route : debug - Not match matcher reg -[2023-12-15 21:34:08] Route : debug - match route: GET /about -[2023-12-15 21:34:38] ServerMux : info - match path: /api/ -[2023-12-15 21:34:38] Directive : debug - Set-HeaderAccess-Control-Allow-Origin:* -[2023-12-15 21:34:38] Directive : debug - Set-HeaderAccess-Control-Allow-Methods:GET, -[2023-12-15 21:34:38] Directive : debug - Set-HeaderAccess-Control-Allow-Headers:Content-Type, -[2023-12-15 21:34:38] Route : debug - match route: GET /about -[2023-12-15 21:34:38] URLMatcher : debug - Match for /about -[2023-12-15 21:34:38] Route : debug - Not match matcher reg -[2023-12-15 21:34:38] Route : debug - match route: GET /about -[2023-12-15 21:35:42] Server : info - Load config success -[2023-12-15 21:35:42] Server : info - start gohttpd -[2023-12-15 21:35:42] ServerMux : debug - NewServeMux -[2023-12-15 21:35:42] ServerMux : debug - add directive: Set-Header -[2023-12-15 21:35:42] ServerMux : debug - add directive: Set-Header -[2023-12-15 21:35:42] ServerMux : debug - add directive: Set-Header -[2023-12-15 21:35:42] ServerMux : debug - NewServeMux -[2023-12-15 21:35:42] Listener : debug - listen on :8088 -[2023-12-15 21:35:42] Listener : debug - listen on :8080 -[2023-12-15 21:35:42] Server : info - gohttpd start success -[2023-12-15 21:35:48] ServerMux : info - match path: /api/ -[2023-12-15 21:35:48] Directive : debug - Set-HeaderAccess-Control-Allow-Origin* -[2023-12-15 21:35:48] Directive : debug - Set-HeaderAccess-Control-Allow-MethodsGET, -[2023-12-15 21:35:48] Directive : debug - Set-HeaderAccess-Control-Allow-HeadersContent-Type, -[2023-12-15 21:35:48] Route : debug - match route: GET /about -[2023-12-15 21:35:48] URLMatcher : debug - Match for /about -[2023-12-15 21:35:48] Route : debug - Not match matcher reg -[2023-12-15 21:35:48] Route : debug - match route: GET /about -[2023-12-15 21:43:27] Server : info - Load config success -[2023-12-15 21:43:27] Server : info - start gohttpd -[2023-12-15 21:43:27] ServerMux : debug - NewServeMux -[2023-12-15 21:43:27] ServerMux : debug - add directive: Set-Header -[2023-12-15 21:43:27] ServerMux : debug - add directive: Set-Header -[2023-12-15 21:43:27] ServerMux : debug - add directive: Set-Header -[2023-12-15 21:43:27] ServerMux : debug - NewServeMux -[2023-12-15 21:43:27] Listener : debug - listen on :8088 -[2023-12-15 21:43:27] Listener : debug - listen on :8080 -[2023-12-15 21:43:27] Server : info - gohttpd start success -[2023-12-15 21:43:35] ServerMux : info - match path: /api/ -[2023-12-15 21:43:35] Directive : debug - Set-Header Access-Control-Allow-Origin:* -[2023-12-15 21:43:35] Directive : debug - Set-Header Access-Control-Allow-Methods:GET, POST, PUT, DELETE, OPTIONS -[2023-12-15 21:43:35] Directive : debug - Set-Header Access-Control-Allow-Headers:Content-Type, Authorization, Content-Length, X-Requested-With -[2023-12-15 21:43:35] Route : debug - match route: GET /about -[2023-12-15 21:43:35] URLMatcher : debug - Match for /about -[2023-12-15 21:43:35] Route : debug - Not match matcher reg -[2023-12-15 21:43:35] Route : debug - match route: GET /about diff --git a/target/adminui/index.html b/target/adminui/index.html deleted file mode 100644 index 30bd6d0..0000000 --- a/target/adminui/index.html +++ /dev/null @@ -1,5 +0,0 @@ - - -

GoHttpd Running...

- - \ No newline at end of file diff --git a/target/config.json b/target/config.json deleted file mode 100644 index 88943a9..0000000 --- a/target/config.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "logging" :{ - "appenders": { - "out" :{ - "type": "file", - "options":{ - "file": "gohttpd.log" - } - } - }, - "categories": { - "default": { - "appenders": [ "out" ], - "level": "debug" - } - } - }, - "admin" : { - "name": "admin", - "port" : 8088, - "username": "admin", - "password": "admin", - "directives":[ - "Set_Header Access-Control-Allow-Origin *", - "Set_Header Access-Control-Allow-Methods GET, POST, PUT, DELETE, OPTIONS", - "Set_Header Access-Control-Allow-Headers Content-Type, Authorization, Content-Length, X-Requested-With" - ], - "paths": [ - { - "path": "/", - "root": "./adminui", - "default": "index.html" - } - ] - }, - "servers":[{ - "port" : 8080, - "name":"demo", - "paths":[ - { - "path": "/", - "root": "./public/", - "default": "index.html" - }, - { - "path": "/ws", - "upstreams":["http://localhost:3000"], - "pathrewrite": { - "replace": "/ws", - "with": "/" - } - } - ] - }] -} \ No newline at end of file diff --git a/target/gohttpd b/target/gohttpd deleted file mode 100755 index 6f6a8b5..0000000 Binary files a/target/gohttpd and /dev/null differ diff --git a/target/gohttpd.log b/target/gohttpd.log deleted file mode 100644 index 345f4ba..0000000 --- a/target/gohttpd.log +++ /dev/null @@ -1,38 +0,0 @@ -[2023-12-15 21:12:54] Server : info - Load config success -[2023-12-15 21:12:54] Server : info - Load config success -[2023-12-15 21:12:54] daemon : debug - Starting new task -[2023-12-15 21:12:54] Server : info - Load config success -[2023-12-15 21:12:54] Server : info - start gohttpd -[2023-12-15 21:12:54] ServerMux : debug - NewServeMux -[2023-12-15 21:12:54] ServerMux : debug - NewServeMux -[2023-12-15 21:12:54] Listener : debug - listen on :8088 -[2023-12-15 21:12:54] Listener : debug - listen on :8080 -[2023-12-15 21:12:54] Server : info - gohttpd start success -[2023-12-15 21:13:25] Server : info - Load config success -[2023-12-15 21:13:25] daemon : debug - Send signal:114284 terminated -[2023-12-15 21:13:25] daemon : debug - Stop it -[2023-12-15 21:13:25] Server : info - Exit -[2023-12-15 21:13:25] daemon : debug - daemon is stopped, exit now -[2023-12-15 21:15:49] Server : info - Load config success -[2023-12-15 21:15:49] Server : info - Load config success -[2023-12-15 21:15:49] daemon : debug - Starting new task -[2023-12-15 21:15:49] Server : info - Load config success -[2023-12-15 21:15:49] Server : info - start gohttpd -[2023-12-15 21:15:49] ServerMux : debug - NewServeMux -[2023-12-15 21:15:49] ServerMux : debug - NewServeMux -[2023-12-15 21:15:49] Listener : debug - listen on :8088 -[2023-12-15 21:15:49] Listener : debug - listen on :8080 -[2023-12-15 21:15:49] Server : info - gohttpd start success -[2023-12-15 21:16:18] filehandler : debug - access:/home/kingecg/code/gohttp/target/adminui -[2023-12-15 21:16:18] filehandler : debug - access:/home/kingecg/code/gohttp/target/adminui/index.html -[2023-12-15 21:16:18] filehandler : debug - access:/home/kingecg/code/gohttp/target/adminui/favicon.ico -[2023-12-15 21:16:18] filehandler : error - access file error:/home/kingecg/code/gohttp/target/adminui/favicon.icostat /home/kingecg/code/gohttp/target/adminui/favicon.ico: no such file or directory -[2023-12-15 21:17:10] Route : debug - match route: GET /about -[2023-12-15 21:17:10] URLMatcher : debug - Match for /about -[2023-12-15 21:17:10] Route : debug - Not match matcher reg -[2023-12-15 21:17:10] Route : debug - match route: GET /about -[2023-12-15 21:17:44] Server : info - Load config success -[2023-12-15 21:17:44] daemon : debug - Send signal:115012 terminated -[2023-12-15 21:17:44] daemon : debug - Stop it -[2023-12-15 21:17:44] Server : info - Exit -[2023-12-15 21:17:44] daemon : debug - daemon is stopped, exit now diff --git a/target/gohttpd.pid b/target/gohttpd.pid deleted file mode 100644 index 2df7c84..0000000 --- a/target/gohttpd.pid +++ /dev/null @@ -1 +0,0 @@ -115012 \ No newline at end of file