File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments