exec

oneshot exec -- command

Execute a command for each request, passing in the body to stdin and returning the stdout to the client. Commands may be CGI compliant but do not have to be. CGI compliance can be enforced with the --enforce-cgi flag.

Options

Flag Configuration File Description
--enforce-cgi .enforceCGI The exec must conform to the CGI standard.
-e, --env .env Set an environment variable.
--dir .dir Set the working directory.
--stderr .stderr Where to send exec stderr.
--replace-headers .replaceHeaders Allow command to replace header values.
-H, --header .header HTTP header to return to the client, can be specified multiple times. (Format: HEADER_NAME=HEADER_VALUE)