User Tools

Site Tools


dev:websockets:gateway:websocketd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dev:websockets:gateway:websocketd [2018/06/15 17:01] – [Run Websocketd on port 7684] ericksondev:websockets:gateway:websocketd [2022/02/10 13:34] (current) – external edit 127.0.0.1
Line 61: Line 61:
 </code> </code>
  
 +Full set of command line args at https://github.com/joewalnes/websocketd/blob/master/help.go
 ==== Modify NGINX to proxy websocketd ==== ==== Modify NGINX to proxy websocketd ====
  
Line 66: Line 67:
  
 <code> <code>
 +
 +# Websocketd supports SSL, but I run it in non-SSL mode since it's on the same machine as NGINX.
 +# Replace https:// with http://
 +proxy_pass http://localhost:7682;
  
 # Update timeout values within the /osrf-websocket-translator section  # Update timeout values within the /osrf-websocket-translator section 
Line 122: Line 127:
 Environment=PATH=/openils/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin Environment=PATH=/openils/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
 Environment=LD_LIBRARY_PATH=/openils/lib:/usr/local/lib:/usr/local/lib/dbd:$LD_LIBRARY_PATH Environment=LD_LIBRARY_PATH=/openils/lib:/usr/local/lib:/usr/local/lib/dbd:$LD_LIBRARY_PATH
-ExecStart=/usr/local/bin/websocketd --loglevel error --maxforks 250 --port 7684 /openils/bin/osrf-websocket-stdio+ExecStart=/usr/local/bin/websocketd --loglevel error --maxforks 250 --port 7682 /openils/bin/osrf-websocket-stdio
  
-# --sameorigin and --origin=domain1,domain2 flags are also supported.+# modify websocketd command line options to taste 
 +# --sameorigin and --origin=domain1,domain2 flags are also supported for security.
  
 +# On Ubuntu 18.04, you may also need to include something like this:
 [Install] [Install]
 WantedBy=multi-user.target WantedBy=multi-user.target
Line 133: Line 140:
  
 <code> <code>
-sudo systemctl daemon-reload +# disable apache2-websockets to avoid unintended starts & port conflicts 
-sudo systemctl enable websocketd-osrf +sudo systemctl disable apache2-websockets 
-sudo systemctl start websocketd-osrf+ 
 +# enable and start websocketd-osrf 
 +sudo systemctl daemon-reload 
 +sudo systemctl enable websocketd-osrf 
 +sudo systemctl start websocketd-osrf
 </code> </code>
  
dev/websockets/gateway/websocketd.1529096487.txt.gz · Last modified: 2022/02/10 13:34 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.