2020-10-29 20:35:48 +00:00
# twins
[](https://liberapay.com/rocketnine.space)
[Gemini ](https://gemini.circumlunar.space ) server
2020-10-31 00:29:25 +00:00
**Warning:** The twins configuration format is still under development.
Breaking changes may be made.
2020-10-31 23:49:37 +00:00
This page is also available at [gemini://twins.rocketnine.space ](gemini://twins.rocketnine.space )
2020-10-29 20:35:48 +00:00
## Features
- Serve static files
2020-11-19 16:57:28 +00:00
- Detect content type
- Specify content type for files with matching extension
2020-11-05 20:57:28 +00:00
- List files and directories (when enabled)
2020-10-30 18:19:16 +00:00
- Reverse proxy requests
2020-11-04 20:48:55 +00:00
- TCP
- [FastCGI ](https://en.wikipedia.org/wiki/FastCGI )
2020-12-03 19:12:13 +00:00
- Serve Gemini content via HTTPS
2021-04-08 03:53:11 +00:00
- Pages are converted automatically by [gmitohtml ](https://code.rocketnine.space/tslocum/gmitohtml )
2020-10-31 21:59:44 +00:00
- Reload configuration on `SIGHUP`
2020-10-29 20:35:48 +00:00
2020-11-09 21:59:30 +00:00
## Proposals
2021-04-08 03:53:11 +00:00
twins includes features that are not yet part of the Gemini specification. See [PROPOSALS.md ](https://code.rocketnine.space/tslocum/twins/src/branch/master/PROPOSALS.md )
2020-11-09 21:59:30 +00:00
2020-10-29 20:35:48 +00:00
## Download
2020-11-19 16:57:28 +00:00
twins is written in [Go ](https://golang.org ). Run the following command to
download and build twins from source.
2020-10-29 20:35:48 +00:00
```bash
2021-04-08 03:53:11 +00:00
go get code.rocketnine.space/tslocum/twins
2020-10-29 20:35:48 +00:00
```
2020-11-19 16:57:28 +00:00
The resulting binary is available as `~/go/bin/twins` .
2020-10-29 20:35:48 +00:00
## Configure
2021-04-08 03:53:11 +00:00
See [CONFIGURATION.md ](https://code.rocketnine.space/tslocum/twins/src/branch/master/CONFIGURATION.md )
2020-10-29 20:35:48 +00:00
## Support
2021-04-08 03:53:11 +00:00
Please share issues and suggestions [here ](https://code.rocketnine.space/tslocum/twins/issues ).
2020-10-29 20:35:48 +00:00
## Dependencies
2020-11-04 20:48:55 +00:00
- [filetype ](https://github.com/h2non/filetype ) - MIME type detection
- [gofast ](https://github.com/yookoala/gofast ) - FastCGI client
- [go-shellquote ](https://github.com/kballard/go-shellquote ) - Shell string quoting
- [yaml ](https://github.com/go-yaml/yaml/tree/v3 ) - Configuration parsing