Update README.md

This commit is contained in:
Michael Lazar 2019-09-22 23:38:09 -04:00 committed by GitHub
parent feb388220a
commit 97be91baaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 5 deletions

View File

@ -68,10 +68,11 @@ optional arguments:
### Setting the ``hostname`` ### Setting the ``hostname``
Because the gemini protocol sends the whole URL in the request, it's necessary The server's hostname should be set to the *DNS* name that you expect to
to declare the hostname that your server is expecting to receive traffic under. receive traffic from. For example, if your jetforce server is running on
Jetforce will reject any request that doesn't match your hostname with a status "gemini://cats.com", you should set the hostname to "cat.com". Any URLs that
of ``50 PERMENANT FAILURE``. 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 ### 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 the jetforce server will execute the script and pass in information about the
request using environment variables: request using environment variables:
| Environment Variable | Example Value | | Variable Name | Example |
| --- | --- | | --- | --- |
| GATEWAY_INTERFACE | GCI/1.1 | | GATEWAY_INTERFACE | GCI/1.1 |
| GEMINI_URL | gemini://mozz.us/cgi-bin/debug.cgi?foobar | GEMINI_URL | gemini://mozz.us/cgi-bin/debug.cgi?foobar