diff options
author | gennyble <gen@nyble.dev> | 2025-03-11 19:02:00 -0500 |
---|---|---|
committer | gennyble <gen@nyble.dev> | 2025-03-11 19:02:00 -0500 |
commit | 67e7e572e814b1cfcb1580d19a419a1785a2a9ae (patch) | |
tree | 2dd26b22c80d23af0cdb9e5d743ffa6115299c78 /README.md | |
parent | 352bc4fe6387a428dff3390476a57bf88a96d228 (diff) | |
download | corgi-67e7e572e814b1cfcb1580d19a419a1785a2a9ae.tar.gz corgi-67e7e572e814b1cfcb1580d19a419a1785a2a9ae.zip |
set more env vars
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/README.md b/README.md index ff4066d..ef2dd2b 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,14 @@ Sets the following environmental variables for the CGI script, many following [R - **`GATEWAY_INTERFACE`** to the fixed value `CGI/1.1` - **`PATH_INFO`** to the HTTP path the client requested - **`QUERY_STRING`** to the query part of the URI +- **`REMOTE_ADDR`** is the `Forwarded-For` header, maybe prefixed with + an `X-`, or the client address if that header is not set - **`REQUEST_METHOD`** to the HTTP request method +- **`SCRIPT_NAME`** is set to the path specified in the config +- **`SERVER_NAME`** is set to the HTTP host header +- **`SERVER_PORT`** is the port that corgi is running on +- **`SERVER_PROTOCOL`** is the HTTP version string that the request came in on +- **`SERVER_SOFTWARE`** is `corgi/1.0` where `1.0` is the current version number Additionally, corgi will set environment variables for the HTTP request headers. They will be uppercased and hyphens replaced with underscores. |