mirror of
https://code.rocketnine.space/tslocum/twins.git
synced 2024-11-27 11:38:14 +01:00
Migrate to code.rocketnine.space
This commit is contained in:
parent
4f0c9f2c39
commit
cd85204680
5 changed files with 14 additions and 15 deletions
|
@ -79,14 +79,14 @@ and the private key file at `certs/live/$DOMAIN/privkey.pem` to twins.
|
||||||
Pages are also available via HTTPS on the same port by default.
|
Pages are also available via HTTPS on the same port by default.
|
||||||
Set this option to `true` to disable this feature.
|
Set this option to `true` to disable this feature.
|
||||||
|
|
||||||
Pages are converted automatically by [gmitohtml](https://gitlab.com/tslocum/gmitohtml).
|
Pages are converted automatically by [gmitohtml](https://code.rocketnine.space/tslocum/gmitohtml).
|
||||||
|
|
||||||
### DisableSize
|
### DisableSize
|
||||||
|
|
||||||
The size of the response body is included in the media type header by default.
|
The size of the response body is included in the media type header by default.
|
||||||
Set this option to `true` to disable this feature.
|
Set this option to `true` to disable this feature.
|
||||||
|
|
||||||
See [PROPOSALS.md](https://gitlab.com/tslocum/twins/blob/master/PROPOSALS.md) for more information.
|
See [PROPOSALS.md](https://code.rocketnine.space/tslocum/twins/src/branch/master/PROPOSALS.md) for more information.
|
||||||
|
|
||||||
### Path
|
### Path
|
||||||
|
|
||||||
|
@ -123,7 +123,7 @@ Any number of attributes may be defined for a path.
|
||||||
##### Cache
|
##### Cache
|
||||||
|
|
||||||
Cache duration (in seconds). Set to `0` to disable caching entirely. This is an
|
Cache duration (in seconds). Set to `0` to disable caching entirely. This is an
|
||||||
out-of-spec feature. See [PROPOSALS.md](https://gitlab.com/tslocum/twins/blob/master/PROPOSALS.md)
|
out-of-spec feature. See [PROPOSALS.md](https://code.rocketnine.space/tslocum/twins/src/branch/master/PROPOSALS.md)
|
||||||
for more information.
|
for more information.
|
||||||
|
|
||||||
##### FastCGI
|
##### FastCGI
|
||||||
|
|
11
README.md
11
README.md
|
@ -1,5 +1,4 @@
|
||||||
# twins
|
# twins
|
||||||
[![CI status](https://gitlab.com/tslocum/twins/badges/master/pipeline.svg)](https://gitlab.com/tslocum/twins/commits/master)
|
|
||||||
[![Donate](https://img.shields.io/liberapay/receives/rocketnine.space.svg?logo=liberapay)](https://liberapay.com/rocketnine.space)
|
[![Donate](https://img.shields.io/liberapay/receives/rocketnine.space.svg?logo=liberapay)](https://liberapay.com/rocketnine.space)
|
||||||
|
|
||||||
[Gemini](https://gemini.circumlunar.space) server
|
[Gemini](https://gemini.circumlunar.space) server
|
||||||
|
@ -19,12 +18,12 @@ This page is also available at [gemini://twins.rocketnine.space](gemini://twins.
|
||||||
- TCP
|
- TCP
|
||||||
- [FastCGI](https://en.wikipedia.org/wiki/FastCGI)
|
- [FastCGI](https://en.wikipedia.org/wiki/FastCGI)
|
||||||
- Serve Gemini content via HTTPS
|
- Serve Gemini content via HTTPS
|
||||||
- Pages are converted automatically by [gmitohtml](https://gitlab.com/tslocum/gmitohtml)
|
- Pages are converted automatically by [gmitohtml](https://code.rocketnine.space/tslocum/gmitohtml)
|
||||||
- Reload configuration on `SIGHUP`
|
- Reload configuration on `SIGHUP`
|
||||||
|
|
||||||
## Proposals
|
## Proposals
|
||||||
|
|
||||||
twins includes features that are not yet part of the Gemini specification. See [PROPOSALS.md](https://gitlab.com/tslocum/twins/blob/master/PROPOSALS.md)
|
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)
|
||||||
|
|
||||||
## Download
|
## Download
|
||||||
|
|
||||||
|
@ -32,18 +31,18 @@ twins is written in [Go](https://golang.org). Run the following command to
|
||||||
download and build twins from source.
|
download and build twins from source.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
go get gitlab.com/tslocum/twins
|
go get code.rocketnine.space/tslocum/twins
|
||||||
```
|
```
|
||||||
|
|
||||||
The resulting binary is available as `~/go/bin/twins`.
|
The resulting binary is available as `~/go/bin/twins`.
|
||||||
|
|
||||||
## Configure
|
## Configure
|
||||||
|
|
||||||
See [CONFIGURATION.md](https://gitlab.com/tslocum/twins/blob/master/CONFIGURATION.md)
|
See [CONFIGURATION.md](https://code.rocketnine.space/tslocum/twins/src/branch/master/CONFIGURATION.md)
|
||||||
|
|
||||||
## Support
|
## Support
|
||||||
|
|
||||||
Please share issues and suggestions [here](https://gitlab.com/tslocum/twins/issues).
|
Please share issues and suggestions [here](https://code.rocketnine.space/tslocum/twins/issues).
|
||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
|
|
||||||
|
|
6
go.mod
6
go.mod
|
@ -1,12 +1,12 @@
|
||||||
module gitlab.com/tslocum/twins
|
module code.rocketnine.space/tslocum/twins
|
||||||
|
|
||||||
go 1.15
|
go 1.16
|
||||||
|
|
||||||
require (
|
require (
|
||||||
|
code.rocketnine.space/tslocum/gmitohtml v1.0.4
|
||||||
github.com/h2non/filetype v1.1.1
|
github.com/h2non/filetype v1.1.1
|
||||||
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
|
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
|
||||||
github.com/yookoala/gofast v0.6.0
|
github.com/yookoala/gofast v0.6.0
|
||||||
gitlab.com/tslocum/gmitohtml v1.0.3
|
|
||||||
golang.org/x/tools v0.1.0 // indirect
|
golang.org/x/tools v0.1.0 // indirect
|
||||||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
|
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
|
||||||
)
|
)
|
||||||
|
|
4
go.sum
4
go.sum
|
@ -1,3 +1,5 @@
|
||||||
|
code.rocketnine.space/tslocum/gmitohtml v1.0.4 h1:EZsXfnP1sZx85PYNQb9XWFuF4WxSgeeTN3vxPsdGKyY=
|
||||||
|
code.rocketnine.space/tslocum/gmitohtml v1.0.4/go.mod h1:1FWEBFtkgRZgRE7ktApyFe29nm3MCNANvH/Mp8hyG54=
|
||||||
github.com/go-restit/lzjson v0.0.0-20161206095556-efe3c53acc68/go.mod h1:7vXSKQt83WmbPeyVjCfNT9YDJ5BUFmcwFsEjI9SCvYM=
|
github.com/go-restit/lzjson v0.0.0-20161206095556-efe3c53acc68/go.mod h1:7vXSKQt83WmbPeyVjCfNT9YDJ5BUFmcwFsEjI9SCvYM=
|
||||||
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
|
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
|
||||||
github.com/gopherjs/gopherjs v0.0.0-20200217142428-fce0ec30dd00/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
|
github.com/gopherjs/gopherjs v0.0.0-20200217142428-fce0ec30dd00/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
|
||||||
|
@ -12,8 +14,6 @@ github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9
|
||||||
github.com/yookoala/gofast v0.6.0 h1:E5x2acfUD7GkzCf8bmIMwnV10VxDy5tUCHc5LGhluwc=
|
github.com/yookoala/gofast v0.6.0 h1:E5x2acfUD7GkzCf8bmIMwnV10VxDy5tUCHc5LGhluwc=
|
||||||
github.com/yookoala/gofast v0.6.0/go.mod h1:OJU201Q6HCaE1cASckaTbMm3KB6e0cZxK0mgqfwOKvQ=
|
github.com/yookoala/gofast v0.6.0/go.mod h1:OJU201Q6HCaE1cASckaTbMm3KB6e0cZxK0mgqfwOKvQ=
|
||||||
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
gitlab.com/tslocum/gmitohtml v1.0.3 h1:mNEDRL5eNHAIPHI6eIi4QpwJCk97SF5efEvtZOL5j+A=
|
|
||||||
gitlab.com/tslocum/gmitohtml v1.0.3/go.mod h1:UVZEaBMmAAdEPZOUyjV5ZxiQLOkvAbGE13GXKb/b4OI=
|
|
||||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||||
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||||
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
||||||
|
|
|
@ -11,7 +11,7 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"gitlab.com/tslocum/gmitohtml/pkg/gmitohtml"
|
"code.rocketnine.space/tslocum/gmitohtml/pkg/gmitohtml"
|
||||||
)
|
)
|
||||||
|
|
||||||
var cssBytes = []byte(gmitohtml.StyleCSS)
|
var cssBytes = []byte(gmitohtml.StyleCSS)
|
||||||
|
|
Loading…
Reference in a new issue