Commit graph

35 commits

Author SHA1 Message Date
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
12aa024671 Downgrade dependency yaml to v2
v3 has not been released yet.
2021-07-22 13:04:42 -07:00
Trevor Slocum
3500533ecf Update StyleSheet implementation 2021-07-10 09:27:52 -07:00
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
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
a96e2123fb Require trailing slash when specifying directory path 2020-12-05 22:49:53 -08:00
Trevor Slocum
3a46bd1de8 Fix resolving regexp path 2020-12-05 22:18:17 -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
f91f42464d Use case insensitive comparison when matching vhost 2020-11-25 21:43:50 -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
05da75b22b Fix cache attribute parsing 2020-11-09 21:12:22 -08:00
Trevor Slocum
8d02c6d779 Add cache attribute 2020-11-09 20:10:53 -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
8e2e404a81 Send headers to FastCGI server 2020-11-04 13:07:06 -08:00
Trevor Slocum
5e9515ff09 Support FastCGI 2020-11-04 12:48:55 -08:00
Trevor Slocum
9c7ee8bb10 Support reloading configuration file
Resolves #2.
2020-10-31 14:59:44 -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
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