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

From MozillaWiki
< Connected Devices‎ | Projects‎ | Project Link
Revision as of 16:23, 23 June 2016 by Michielbdejong (talk | contribs) (draft knilxof.org admin instructions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
    • Under Construction **

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 (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 ps docker run -d -v/home/ec2-user/cert:/certdir --net=host -e DOMAIN=box.knilxof.org -e SECRET=foxbox pagekite-letsencrypt docker run -d -v/home/ec2-user/cert:/certdir -p4242:4242 registration_server