Connected Devices/Projects/Project Link/Registration Server and Tunneling

From MozillaWiki
Jump to: navigation, search
    • Pending DNS change **

To administer the registration server, dns-server, and reverse proxy tunnel (pagekite) running on knilxof.org, type `ssh ec2-user@knilxof.org` (make sure Sam Giles or Richard Weiss has added your ssh key to the server for you).

In /home/ec2-user/, you will see a checkout of the https://github.com/fxbox/registration_server repo, and one of the https://github.com/fxbox/dns-server repo. To build the two docker images after pulling in changes in these repos (the -m 1g option increases the memory limit during the build process):

   docker build -t pagekite-letsencrypt dns-server/server/
   docker build -m 1g -t registration_server registration_server/

You will also see a TLS certificate in /home/ec2-user/cert.

To start the two containers (one for registration_server, and one for dns-server including pagekite frontend), do:

   docker images
   docker ps
   docker run -d -v /home/ec2-user/certdir:/certdir --net=host -e DOMAIN=box.knilxof.org -e SECRET=foxbox pagekite-letsencrypt
   docker run -d -v /home/ec2-user/certdir:/certdir -p 4443:4443 registration_server