dev:websockets:gateway:websocketd
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dev:websockets:gateway:websocketd [2018/06/15 17:02] – [Run Websocketd on port 7682] erickson | dev:websockets:gateway:websocketd [2022/02/10 13:34] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 67: | Line 67: | ||
< | < | ||
+ | |||
+ | # 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:// | ||
# Update timeout values within the / | # Update timeout values within the / | ||
Line 123: | Line 127: | ||
Environment=PATH=/ | Environment=PATH=/ | ||
Environment=LD_LIBRARY_PATH=/ | Environment=LD_LIBRARY_PATH=/ | ||
- | ExecStart=/ | + | ExecStart=/ |
- | # --sameorigin and --origin=domain1, | + | # modify websocketd command line options to taste |
+ | # --sameorigin and --origin=domain1, | ||
+ | # On Ubuntu 18.04, you may also need to include something like this: | ||
[Install] | [Install] | ||
WantedBy=multi-user.target | WantedBy=multi-user.target | ||
Line 134: | Line 140: | ||
< | < | ||
- | $ 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 | ||
</ | </ | ||
dev/websockets/gateway/websocketd.1529096565.txt.gz · Last modified: 2022/02/10 13:34 (external edit)