From 40e2f7f7b411163ec3006cc7f67a9d3cfaf3321a Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 6 May 2024 05:05:11 +0300 Subject: [PATCH] update readme --- README.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 32120c9..b832439 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,17 @@ # next -PHP 8 server for different protocols, based on [Ratchet](https://github.com/ratchetphp/Ratchet) asynchronous socket library. +PHP 8 server for different protocols + +Based on [Ratchet](https://github.com/ratchetphp/Ratchet) asynchronous socket library. ## Features * Asynchronous connections * Multi-host -* Multiple protocols: +* Multi-protocol: * [x] [NEX](https://nightfall.city/nex/info/specification.txt) * [ ] [Gemini](https://geminiprotocol.net) -* Detailed event log +* Event log * Optional: * directory listing navigation with safe filesystem access * custom index file names @@ -26,10 +28,10 @@ PHP 8 server for different protocols, based on [Ratchet](https://github.com/ratc ### Start -Create as many servers as wanted by providing different `type`, `host`, `port` and other arguments. +Create as many servers as wanted by providing different `type`, `host`, `port` and other arguments! -* for security reasons, `next` server prevents any access to the hidden files (started with dot).\ -* also, clients can't access any data out the `root` path, defined on server startup +* for security reasons, `next` server prevents any access to the hidden files (started with dot) +* also, clients can't access any data out the `root` path, that defined on server startup Simple example: @@ -54,7 +56,7 @@ php src/server.php type=nex host=127.0.0.1 port=1900 root=/target/dir * `file` - index **file name** that server try to open on directory path requested, disabled by default * `list` - show content listing in the requested directory (when index file not found), enabled by default * `time` - show file modification time as the alt text in directory listing, disabled by default -* `fail` - **absolute path** to the failure template file (e.g. `/path/to/error.gmi`), disabled by default +* `fail` - **absolute path** to the failure template (e.g. `/path/to/error.gmi`), disabled by default * `dump` - query log, enabled by default ### Autostart