Commit graph

42 commits

Author SHA1 Message Date
Trevor Slocum c026f5c7b1 Clarify IPv4 and IPv6 configuration 2023-05-06 10:49:39 -07:00
Ivan Vilata-i-Balaguer 668e099ffa Add quotes for IPv6 address configuration example
Since leaving the quotes out in the config file causes the confusing "did not
find expected key" error, so do not assume that the user is familiar enough
with YAML syntax as to identify the issue.
2023-05-04 09:23:31 +02:00
Ivan Vilata-i-Balaguer 066fe276eb Fix listening on literal IPv6 address
Those contain colons, so splitting by colons would break the address in the
middle.  Instead, use a regular expression to split host and port at the last
colon, if followed by port digits and the end of the string.

Also, document the syntax for listening on literal IPv4 and IPv6 addresses.
2023-05-03 14:22:19 +02:00
Trevor Slocum 24f3196a61 Add configuration option ShowImages
When enabled, clients accessing gemini pages via HTTPS will see links to
images as inline images.

Resolves #13.
2021-07-22 20:02:42 -07:00
Trevor Slocum 0c4c7e8ecb Fix sending custom content types to HTTP clients
Resolves #14.
2021-07-22 19:49:24 -07:00
Trevor Slocum 3500533ecf Update StyleSheet implementation 2021-07-10 09:27:52 -07:00
f 2252fc45dd Merge branch 'master' into custom-css 2021-07-09 13:21:40 -07:00
Aaron Fischer 8654f0ca1b Rename to StyleSheet and precache CSS bytes
If there is a custom CSS file specified and usable (it exists and is
readable), we precache it on server startup (for every host). This
increase the request performance and reduce IO-load slightly.
2021-07-09 22:15:35 +02:00
Aaron Fischer 83453281bc Add support for custom CSS files
Specify the ```styles``` config option for a host and point to a
valid CSS file to use this instead of the default one. This fixes #9.
2021-06-08 22:10:10 +02:00
Trevor Slocum f8a14016f0 Update certificate generation command 2021-06-03 22:39:56 -07:00
Trevor Slocum cd85204680 Migrate to code.rocketnine.space 2021-04-07 20:53:11 -07:00
Trevor Slocum 207e7c4030 Include client certificate hashes in FastCGI requests 2020-12-15 14:02:43 -08:00
Trevor Slocum a96e2123fb Require trailing slash when specifying directory path 2020-12-05 22:49:53 -08:00
Trevor Slocum faab032d45 Support directory listing via HTTPS 2020-12-03 16:45:20 -08:00
Trevor Slocum 8d6cb6527e Serve Gemini content via HTTPS 2020-12-03 11:36:14 -08:00
Trevor Slocum 19b89bfd9e Add configuration option Lang 2020-12-02 10:29:23 -08:00
Trevor Slocum c64a59c44e Support redirecting to path or URL 2020-11-19 09:24:12 -08:00
Trevor Slocum 58a4ecd958 Rename HiddenFiles as Hidden 2020-11-19 08:57:28 -08:00
Trevor Slocum cac10df2f6 Support custom content types 2020-11-17 11:31:22 -08:00
Trevor Slocum be89b61596 Rename ListDirectory as List 2020-11-16 09:19:39 -08:00
Trevor Slocum 7820dd9723 Support logging requests
Resolves #6.
2020-11-12 10:00:22 -08:00
Trevor Slocum 335a90c5c5 Allow specifying default host and path configuration 2020-11-10 12:05:42 -08:00
Trevor Slocum 4f4e2a8cbe Do not follow symbolic links by default
Resolves #4.
2020-11-10 09:59:35 -08:00
Trevor Slocum 51fd59b24f Do not serve hidden files and directories by default 2020-11-10 09:42:32 -08:00
Trevor Slocum 8d02c6d779 Add cache attribute 2020-11-09 20:10:53 -08:00
Trevor Slocum e8af67c813 Add proposals doc 2020-11-09 13:59:30 -08:00
Trevor Slocum e3aeb18053 Add SaneEOL configuration option 2020-11-05 12:57:28 -08:00
Trevor Slocum 0b744eba7e Redirect requests with invalid trailing slash 2020-11-05 10:21:13 -08:00
Trevor Slocum 2b7e21666b Include size of response body in media type header 2020-11-04 20:41:11 -08:00
Trevor Slocum 5e9515ff09 Support FastCGI 2020-11-04 12:48:55 -08:00
Trevor Slocum 47450eddfe Add Gemini page links 2020-10-31 16:49:37 -07:00
Trevor Slocum 9c7ee8bb10 Support reloading configuration file
Resolves #2.
2020-10-31 14:59:44 -07:00
Trevor Slocum b4876f8756 Return 'Not found' on stat error 2020-10-31 09:59:12 -07:00
Trevor Slocum 8465ad9871 Support requesting user input
Resolves #3.
2020-10-30 22:11:54 -07:00
Trevor Slocum e7cebf095e Support directory listing
Resolves #5.
2020-10-30 18:31:13 -07:00
Trevor Slocum d1f9c6d4aa Update configuration docs 2020-10-30 17:29:25 -07:00
Trevor Slocum 5637f27b45 Simplify host configuration 2020-10-30 13:36:55 -07:00
Trevor Slocum 8aec55c459 Support multiple hostnames
Resolves #1.
2020-10-30 13:30:09 -07:00
Trevor Slocum ae6e0b6b7b Support serving the output of local commands 2020-10-30 11:19:16 -07:00
Trevor Slocum 29c059c43f Support proxying requests 2020-10-29 17:17:23 -07:00
Trevor Slocum d66e5d6384 Specify path using fixed string or regular expression 2020-10-29 14:58:12 -07:00
Trevor Slocum ba5b3dc5f0 Initial commit 2020-10-29 13:35:48 -07:00