Skip to content
This repository has been archived by the owner on Jan 4, 2020. It is now read-only.

multiplio/cast-post

Repository files navigation

post

Build Status

Receive, verify and route content to publishers.

routes

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

format

Expects request to have the following format:

{
  text: "Post text.",
  desc: "Post description.",
  fontSize: 12,
  spacing: 1.5,
}

environment

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=