diff --git a/README.md b/README.md index 1b2f68b..d514728 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ + + ## Webserver Webserver is published to the web trough ssh remote forward. In /etc/ssh/sshd_config set `GatewayPorts yes`. @@ -5,13 +7,22 @@ Webserver is published to the web trough ssh remote forward. In /etc/ssh/sshd_co Then start `autossh` to maintain the connection: ```bash -autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -R 8127:localhost:8888 here.rubenvandeven.com +autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -R 8127:localhost:8888 sorteerhoed@here.rubenvandeven.com ``` - To resolve the country the (imprecise) GeoLite2 Free Country dataset is used. Download it [from MaxMind](https://dev.maxmind.com/geoip/geoip2/geolite2/) and store it in the project root folder. +## Start server + +``` +cd mechanical_turk +screen +pipenv shell +python disable_motors.py +python sorteerhoed.py --config config.local.yml --for-real +``` + ## Scanning @@ -72,7 +83,7 @@ Listen 8888 Servername here.rubenvandeven.com - RewriteEngine On + RewriteEngins On RewriteCond %{HTTP:Upgrade} =websocket [NC] RewriteRule /(.*) ws://localhost:8127/$1 [P,L] RewriteCond %{HTTP:Upgrade} !=websocket [NC] @@ -88,3 +99,4 @@ Listen 8888 requires `a2enmod rewrite proxy proxy_http proxy_wstunnel` +s \ No newline at end of file