Skip to content

The registration server to help with foxbox discovery

Notifications You must be signed in to change notification settings

fxbox/registration_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.