Update reamdme

This commit is contained in:
Ruben van de Ven 2019-11-04 09:31:16 +01:00
parent f020581c2e
commit 9b4e5d5c57
1 changed files with 15 additions and 3 deletions

View File

@ -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
<VirtualHost *: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