From 97be91baaa93a4576c53ad7228cf0d047b71e7c6 Mon Sep 17 00:00:00 2001 From: Michael Lazar Date: Sun, 22 Sep 2019 23:38:09 -0400 Subject: [PATCH] Update README.md --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index dc2cd7e..6822580 100644 --- a/README.md +++ b/README.md @@ -68,10 +68,11 @@ optional arguments: ### Setting the ``hostname`` -Because the gemini protocol sends the whole URL in the request, it's necessary -to declare the hostname that your server is expecting to receive traffic under. -Jetforce will reject any request that doesn't match your hostname with a status -of ``50 PERMENANT FAILURE``. +The server's hostname should be set to the *DNS* name that you expect to +receive traffic from. For example, if your jetforce server is running on +"gemini://cats.com", you should set the hostname to "cat.com". Any URLs that +do not match this hostname will be refused by the server, including URLs that +use an external IP address such as "gemini://174.138.124.169". ### TLS Certificates @@ -125,7 +126,7 @@ considered a CGI script. When a CGI script is requested by a gemini client, the jetforce server will execute the script and pass in information about the request using environment variables: -| Environment Variable | Example Value | +| Variable Name | Example | | --- | --- | | GATEWAY_INTERFACE | GCI/1.1 | | GEMINI_URL | gemini://mozz.us/cgi-bin/debug.cgi?foobar