fxbox / registration_server

The registration server to help with foxbox discovery
4 stars 4 forks source link

Registration server

Build Status

This server exposes a http(s) API that lets you post messages from your home network and discover them later on.

Usage

cargo run -- -h 0.0.0.0 -p 4242 --cert-dir /etc/letsencrypt/live/knilxof.org

Urls

Two endpoints are provided:

  1. /register?message=XXX will publish message to other clients who also connect from the same outgoing IP address as you.
  2. /ping will return a json representation of the messages that are published from the same outgoing IP address.