LP#1777180 Update README for websocketd
authorJason Stephenson <jason@sigio.com>
Wed, 12 Sep 2018 14:58:58 +0000 (10:58 -0400)
committerBen Shum <ben@evergreener.net>
Wed, 12 Sep 2018 15:27:44 +0000 (11:27 -0400)
Add optional command to run websocketd without using a proxy.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Ben Shum <ben@evergreener.net>

README

diff --git a/README b/README
index 2959e6e..1df5a1f 100644 (file)
--- a/README
+++ b/README
@@ -534,7 +534,16 @@ unzip websocketd-0.3.0-linux_amd64.zip
 sudo cp websocketd /usr/local/bin/
 ---------------------------------------------------------------------------
 +
-2. Run websocketd as 'opensrf'
+2. Run websocketd
++
+Choose option a or b, below.
++
+a. Run websocketd as 'opensrf'
++
+[NOTE]
+===========================================================================
+This choice requires one of the proxy configurations mentioned below.
+===========================================================================
 +
 .(Debian, Ubuntu)
 [source,bash]
@@ -549,6 +558,15 @@ sudo cp websocketd /usr/local/bin/
 
 # See https://github.com/joewalnes/websocketd/blob/master/help.go
 ---------------------------------------------------------------------------
++
+b. Run websocketd without a proxy
++
+.(Debian, Ubuntu)
+[source,bash]
+---------------------------------------------------------------------------
+sudo -b /usr/local/bin/websocketd --port 7682 --ssl --sslcert=/etc/apache2/ssl/server.crt \
+     --sslkey=/etc/apache2/ssl/server.key /openils/bin/osrf-websocket-stdio
+---------------------------------------------------------------------------
 
 Optional: Using NGINX as a proxy
 --------------------------------