- NGinx
Clone the repository
git clone [email protected]:clout-stack/clout-services-head.git
cd clout-services-head
Install dependencies
npm install
node .
- /list (list services)
- /publish (publish service)
- /unpublish (unpublish service)
{
id: 'service id',
user_id: 'user id',
name: 'service name',
archive: 'archive path',
hosts: 'array of hosts',
status: ['active', 'in-active', 'error'],
server_id: 'server service is running on'
}
{
id: 'server id',
name: 'server name'
host: 'server hostname or ip',
port: 'server port',
lastSeen: 'date of last seen'
}