An implementation of the Microsub server spec
Go to file
2018-05-22 21:15:25 +02:00
cmd Simple start with settings/main page 2018-05-22 21:15:25 +02:00
microsub Improve handling of missing author and content 2018-04-11 18:47:57 +02:00
pkg cli: improve "mark_read" command 2018-05-16 17:54:34 +02:00
vendor Add redis caching of http requests and hub subscription 2018-05-03 21:50:16 +02:00
.drone.yml Fix drone.yml 2018-05-16 17:27:40 +02:00
.gitignore Add server binary to gitignore 2018-02-19 20:24:33 +01:00
docker-compose.yml fix default port 2018-05-16 21:34:12 +02:00
Dockerfile Call new server from Dockerfile 2018-05-16 17:25:15 +02:00
Dockerfile.alpine Add TokenEndpoint to backend.json 2018-05-16 21:21:00 +02:00
LICENSE Create LICENSE 2018-02-19 21:41:31 +01:00
README.md Add information about backend.json to the README 2018-05-16 21:45:19 +02:00

ekster

a microsub server

Warning!

Very alpha: no warranty.

Install ekster

ekster is build using go. To be able to install ekster you need a Go environment. Use these commands to install the programs.

go get -u github.com/pstuifzand/ekster/cmd/eksterd
go get -u github.com/pstuifzand/ekster/cmd/ek

eksterd

The command eksterd is the main server program. It will run a Microsub server. eksterd also needs a Redis server. It's used to temporarily remember the items.

The first time you should call the command

eksterd new

This will generate a configuration file backend.json where it remembers the feeds.

ek

The command ek is the command line client for Microsub server. It is able to call the different functions of the Microsub server. It isn't needed to use eksterd, but it can be useful. It can also be used with other servers that implement Microsub.

backend.json

The backend.json file contains all information about channels, feeds and authentication. When the server is not running you can make changes to this file to add or remove feeds. This is not the easiest way, but it's possible.

When generating this file for the first time. It will contain a default configuration. This can be changed (and perhaps should be changed). The two parts that should be changed are:

"Me": "...", "TokenEndpoint": "...",

The Me value should be set to the URL you use to sign into Monocle, or Micropub client.

TokenEndpoint should be the token_endpoint you use for that domain, ekster will check every 10 minutes, if the token is still valid. This could be retrieved automatically, but this doesn't happen at the moment.

Using Docker / Docker Compose

It's now also possible to use docker-compose to start a ekster server.

docker-compose pull
docker-compose run web new
docker-compose up