Public | Automated Build

Last pushed: 2 years ago
Short Description
pagekite + letsencrypt
Full Description


Server that helps the Box to announce its local IP address without relying on mDNS, and to register its LetsEncrypt cert for use on its local IP address.


localhost:8000   ----   proxy.js   ---- (backend)  ---- (frontend)  ----  browser
                              \  \                                                                /  /
                               \   ----  DNS api  ----  DNS server  -----------------------------   /
                                \                             /                                    /
                                  ----  LetsEncrypt API  ----    (-  -  -  -)   LetsEncrypt trust


Run the server (with DNS on localhost udp port 53 and its API on tcp port 5300):

cd server
npm install
sudo node index test/fixtures/certs/ 53 5300

Or with Docker:

docker build -t pagekite-letsencrypt server/
docker run -d --net=host -e -e pagekite-letsencrypt

Run the tests (from the repo root):

jshint server/*.js server/test/*.js client/*.js client/scripts/*.js
jscs server/*.js server/test/*.js client/*.js client/scripts/*.js
cd server
sudo node test/dns-query_test.js

This server cannot be used on localhost, because it requires real-world DNS
resolution. But an instance of it is running on our dev server. To
try it out, run:

cd client
sh ./
Docker Pull Command
Source Repository