Receive, verify and route content to publishers.
method | route | success | failure | comment |
---|---|---|---|---|
GET | /ready | 200 'ok' | - | kubernetes ready probe |
POST | /publish | 200 'ok' | 401 <error> || 400 <error> || 503 | assumes session cookie present |
Expects request to have the following format:
{
text: "Post text.",
desc: "Post description.",
fontSize: 12,
spacing: 1.5,
}
NODE_ENV=production
PROGRAM_ALIAS=post
PORT=7000
#level=debug|info
LOG_LEVEL=debug
#file=true|false
LOG_FILE=false
#must be same as for login server
COOKIE_SECRET=
DATABASE_NAME=
DATABASE_PROTOCOL=
DATABASE_ADDRESS=
DATABASE_OPTIONS=
DATABASE_USER=
DATABASE_PASSWORD=
IPFS_ADDRESS=
IPFS_PORT=
IPFS_PROTOCOL=
PUBLISHER_ADDRESS=