mirror of
https://code.rocketnine.space/tslocum/twins.git
synced 2024-11-27 08:38:13 +01:00
No description
066fe276eb
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. |
||
---|---|---|
.gitignore | ||
config.go | ||
CONFIGURATION.md | ||
go.mod | ||
go.sum | ||
LICENSE | ||
main.go | ||
PROPOSALS.md | ||
README.md | ||
serve_command.go | ||
serve_fcgi.go | ||
serve_file.go | ||
serve_https.go | ||
serve_proxy.go | ||
server.go | ||
util.go |
twins
Gemini server
Warning: The twins configuration format is still under development. Breaking changes may be made.
This page is also available at gemini://twins.rocketnine.space
Features
- Serve static files
- Detect content type
- Specify content type for files with matching extension
- List files and directories (when enabled)
- Reverse proxy requests
- TCP
- FastCGI
- Serve Gemini content via HTTPS
- Pages are converted automatically by gmitohtml
- Reload configuration on
SIGHUP
Proposals
twins includes features that are not yet part of the Gemini specification. See PROPOSALS.md
Download
twins is written in Go. Run the following command to download and build twins from source.
go get code.rocketnine.space/tslocum/twins
The resulting binary is available as ~/go/bin/twins
.
Configure
See CONFIGURATION.md
Support
Please share issues and suggestions here.
Dependencies
- filetype - MIME type detection
- gofast - FastCGI client
- go-shellquote - Shell string quoting
- yaml - Configuration parsing