K4rian / twserver-go

TiddlyWiki HTTP Server written in Go.
MIT License
20 stars 4 forks source link
go http-server tiddlywiki tiddlywiki5 wiki

twserver-go

A TiddlyWiki HTTP Server written in Go.

Features

Getting started

Prerequisites

Setup

Customizing

All server settings can be tweaked using a configuration file located beside the server binary. The configuration file must use the same name as the binary and saved with the .json extension.

By default, the HTTP server only serves the index file and rejects any other request. To serve one or more custom directories containing extra resources (such as images), you have to add them by tweaking the ServeDirs value in the configuration file.

Building

Building is done with the go tool. If you have setup your GOPATH correctly, the following should work:

go get github.com/k4rian/twserver-go
go build -ldflags "-w -s" github.com/k4rian/twserver-go

Dependencies

The rotating logging system is powered by lumberjack:

gopkg.in/natefinch/lumberjack.v2="v2.2.1"

Docker Image

A Docker image is available on Docker Hub under k4rian/twserver and its corresponding source repository on GitHub.

License

MIT