Connected Devices/Projects/Project Link/Registration Server and Tunneling: Difference between revisions

Registration server and tunneling on the new Docker-based knilxof.org server.
(draft knilxof.org admin instructions)
 
(Registration server and tunneling on the new Docker-based knilxof.org server.)
 
Line 1: Line 1:
** Under Construction **
** 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 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).
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):
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 -t pagekite-letsencrypt dns-server/server/
docker build -m 1g -t registration_server registration_server/
    docker build -m 1g -t registration_server registration_server/


You will also see a TLS certificate in /home/ec2-user/cert.
You will also see a TLS certificate in /home/ec2-user/cert.
Line 13: Line 13:
To start the two containers (one for registration_server, and one for dns-server including pagekite frontend), do:
To start the two containers (one for registration_server, and one for dns-server including pagekite frontend), do:


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