add .gmi type and update README
This commit is contained in:
parent
187e002913
commit
7d3999cfd3
@ -2,12 +2,9 @@
|
|||||||
|
|
||||||
Castor is a lightweight but full-featured gemini server, focused on ease of setup and use.
|
Castor is a lightweight but full-featured gemini server, focused on ease of setup and use.
|
||||||
|
|
||||||
It uses caddy's certmagic library to generate valid TLS certificates automatically on port 80, then reuses them on port 1965 for gemini connections. Alternatively, administators can supply their own certificates.
|
|
||||||
|
|
||||||
Servers are configured using `Castorfile`s, analogous to Caddyfiles or nginx configurations. Various handlers can be defined:
|
Servers are configured using `Castorfile`s, analogous to Caddyfiles or nginx configurations. Various handlers can be defined:
|
||||||
|
|
||||||
- static file serving
|
- static file serving
|
||||||
- proxying to other applications
|
|
||||||
- hard-coded responses
|
- hard-coded responses
|
||||||
|
|
||||||
Castorfiles also support client cert requirements; lists of client certificate hashes can be provided for authentication, or simply as session-management (hashes being passed off to a backend server for mapping to a user identity).
|
Castorfiles also support client cert requirements; lists of client certificate hashes can be provided for authentication, or simply as session-management (hashes being passed off to a backend server for mapping to a user identity).
|
||||||
|
3
main.go
3
main.go
@ -219,7 +219,8 @@ func main() {
|
|||||||
log := NewLogger(true)
|
log := NewLogger(true)
|
||||||
|
|
||||||
err := mime.AddExtensionType(".gemini", "text/gemini")
|
err := mime.AddExtensionType(".gemini", "text/gemini")
|
||||||
if err != nil {
|
err2 := mime.AddExtensionType(".gmi", "text/gemini")
|
||||||
|
if err != nil || err2 != nil {
|
||||||
log.Info("Could not add text/gemini to mime-type database;", err)
|
log.Info("Could not add text/gemini to mime-type database;", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user