akyuu/README.md

47 行
1.5 KiB
Markdown
Raw 通常表示 履歴

htwtxt hosted twtxt server
============================
2016-02-07 01:05:26 +09:00
Rationale
---------
2016-02-07 01:05:26 +09:00
"twtxt" is a protocol and client (<https://github.com/buckket/twtxt>) for
decentralized microblogging. Users are expected to provide their feeds as plain
text files with URLs accessible over the Internet. "htwtxt" is a web server to
host and grow such text files for users without trivial access to their own web
space.
2016-02-07 01:05:26 +09:00
Clone, build, run
-----------------
2016-02-07 01:05:26 +09:00
With htwtxt written in Go, the following instructions expect a Go development
environment with the go tool (<https://golang.org/cmd/go/>) installed, and the
$GOPATH set:
2016-02-07 01:05:26 +09:00
$ git clone https://github.com/plomlompom/htwtxt $GOPATH/src/
2016-02-07 01:18:45 +09:00
$ go get htwtxt
$ mkdir ~/htwtxt
$ cp -R $GOPATH/src/htwtxt/templates ~/htwtxt
$ cd ~/htwtxt
$ $GOPATH/bin/htwtxt
2016-02-07 01:05:26 +09:00
This will build and start the server, and set up directories and files expected
by it below ~/htwtxt (or any other path you prefer instead of it).
2016-02-07 01:05:26 +09:00
Configuring port number and TLS
-------------------------------
2016-02-07 01:05:26 +09:00
By default, htwtxt serves unencrypted HTTP over port 8000. But the executable
accepts up to three optional arguments to change this:
2016-02-07 01:05:26 +09:00
$ $GOPATH/bin/htwtxt [PORT] [CERTIFICATE] [KEY]
2016-02-07 01:05:26 +09:00
PORT is the port number to serve. CERTIFICATE and KEY are paths to the
certificate and key files needed to run htwtxt as a HTTPS server.
2016-02-07 01:05:26 +09:00
Copyright, license
------------------
2016-02-07 01:05:26 +09:00
htwtx (C) 2016 Christian Heller a.k.a. plomlompom
License: Affero GPL version 3, see ./LICENSE