akyuu/README.md

33 行
1.1 KiB
Markdown
Raw Blame 履歴

このファイルには曖昧(ambiguous)なUnicode文字が含まれています

このファイルには、他の文字と見間違える可能性があるUnicode文字が含まれています。 それが意図的なものと考えられる場合は、この警告を無視して構いません。 それらの文字を表示するにはエスケープボタンを使用します。

Quick and dirty hack of a server for hosted twtxt
=================================================
This provides a server to host twtxt feeds, if you want to provide users without
their own easily accessed webspace with a simple in-browser solution to twtxt.
(What is twtxt? See <https://github.com/buckket/twtxt>).
The whole thing is written in Go, building expects a working Go environment,
with $GOPATH set and the go tool installed.
INSTALLATION/USAGE:
Copy this directory into your $GOPATH's src directory, i.e. to
$GOPATH/src/htwtxt then run …
$ go get htwtxt
… then. with $key some secret session store key only you know, …
$ KEY=$key go run $GOPATH/src/htwtxt/main.go
Optional arguments:
$ KEY=$key go run $GOPATH/src/htwtxt/main.go [PORT] [CERTIFICATE] [SERVER_KEY]
PORT may be any desired port number to serve.
If you provide CERTIFICATE and SERVER KEY (both as file paths) as the second and
third argument, the server will run as a HTTPS server instead of a HTTP server.
A quick and dirty setup-and-run script can be found in ./bad-setup-and-run.sh
an even dirtier one is found in ./bad-setup-and-run-https.sh …