Skip to content

Commit 292eb88

Browse files
committed
README: updated CLI section
1 parent 3cbedff commit 292eb88

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,16 +215,20 @@ npx cgi-server --port 3001 --urlPath /cgi-bin --filePath ./cgi-bin
215215
```
216216
-h, --help Display help
217217
-v, --version Display cgi-core version string
218+
218219
--urlPath <urlPath> Set base url path for routing
219220
--filePath <filePath> Set file path where the CGI scripts are located
221+
-p, --port <port> Set the port to listen on
222+
220223
--indexExtension <extension> Set file extension to lookup for index files
221224
--maxBuffer <bytes> Set the allowed HTTP request and response payloads size in bytes
222225
--requestChunkSize <bytes> Set the HTTP request payload data chunks size in bytes
223226
--responseChunkSize <bytes> Set the HTTP response payload data chunks size in bytes
224227
--requestTimeout <ms> Set the HTTP request timeout delay in milliseconds
228+
--trustProxy Trust proxy headers (X-Forwarded-For, etc.)
229+
225230
-d, --debugOutput Output errors for HTTP status 500
226231
-l, --logRequests Log HTTP requests to STDOUT
227-
-p, --port <port> Set the port to listen on
228232
```
229233

230234
# Supported CGI environment variables

0 commit comments

Comments
 (0)