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
12aa024671
Downgrade dependency yaml to v2
...
v3 has not been released yet.
2021-07-22 13:04:42 -07:00
tslocum
30d4097086
Merge pull request 'Update gmitohtml to 1.0.5 to support images' ( #12 ) from f/twins:update-dependencies into master
...
Reviewed-on: https://code.rocketnine.space/tslocum/twins/pulls/12
2021-07-22 12:56:13 -07:00
5632fd1ba4
Update gmitohtml to 1.0.5 to support images
2021-07-22 21:38:16 +02:00
Trevor Slocum
3500533ecf
Update StyleSheet implementation
2021-07-10 09:27:52 -07:00
tslocum
9cd235c469
Merge pull request 'Add support for custom CSS files' ( #11 ) from f/twins:custom-css into master
...
Reviewed-on: https://code.rocketnine.space/tslocum/twins/pulls/11
2021-07-09 19:37:56 -07:00
f
2252fc45dd
Merge branch 'master' into custom-css
2021-07-09 13:21:40 -07:00
daf4b2b1a2
gofmt
2021-07-09 22:19:46 +02: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
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
4f0c9f2c39
Update dependencies
...
Resolves !2 .
2021-03-07 10:58:49 -08:00
Trevor Slocum
bd43e7ebfd
Merge branch 'tls1.2' into 'master'
...
Set minimum TLS version to 1.2
See merge request tslocum/twins!1
2021-01-05 22:36:59 +00:00
Paper
2cc9e0d2c1
Set minimum TLS version to 1.2
2021-01-03 11:34:06 +01:00
Trevor Slocum
207e7c4030
Include client certificate hashes in FastCGI requests
2020-12-15 14:02:43 -08:00
Trevor Slocum
74dc22338e
Support HEAD requests
2020-12-08 18:53:02 -08:00
Trevor Slocum
055dd08886
Fix serving FastCGI requests
2020-12-06 22:09:41 -08: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
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
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
3cb855acfa
Send correct status code when a file is not found
2020-11-16 20:30:44 -08:00
Trevor Slocum
74fa3d5c2e
Print access log by default
2020-11-16 20:21:00 -08:00
Trevor Slocum
be89b61596
Rename ListDirectory as List
2020-11-16 09:19:39 -08:00
Trevor Slocum
7ed7291c6b
Fix log entry for requests with blank path
2020-11-12 14:10:50 -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
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
dc58324dff
Fix resource path resolution
2020-11-04 20:21:13 -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
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