From d1c33b4b1e2305c4dbb9a54dec22f04f665a7a2c Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Wed, 12 Sep 2018 10:58:58 -0400 Subject: [PATCH] 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 --- README | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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 -------------------------------- -- 2.43.2