From: Jason Stephenson Date: Wed, 12 Sep 2018 14:58:58 +0000 (-0400) Subject: LP#1777180 Update README for websocketd X-Git-Tag: osrf_rel_3_1_0-beta~24 X-Git-Url: http://git.equinoxoli.org/?p=opensrf-equinox.git;a=commitdiff_plain;h=d1c33b4b1e2305c4dbb9a54dec22f04f665a7a2c LP#1777180 Update README for websocketd Add optional command to run websocketd without using a proxy. Signed-off-by: Jason Stephenson Signed-off-by: Ben Shum --- diff --git a/README b/README index 2959e6e..1df5a1f 100644 --- 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 --------------------------------