comicchat-webreceiver - simple HTTP to websocket gateway
I wrote this to have a stateless gateway to send messages into
comichat after commit and from build scripts.
Generally, you will want to accept only from the localhost. The
program does not enforce this. I use UncomplicatedFirewall(ufw).
https://wiki.ubuntu.com/UncomplicatedFirewall
You also likely want to customize the PORT to open to http. This
can be done either by setting the PORT environment variable prior
to starting the program, for example like this:
PORT=12345 node /path/to/comic-chat-webreceiver/index.js
The script requires nodejs as well as express, minimist, and
websocket. To get started:
cd /path/to/comic-chat-webreceiver
npm install
Then try starting the program. Let me know if you run into trouble
or have suggestions.
COPYRIGHT
Copyright 2023 Corwin Brust <corwin@bru.st>
LICENSE
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.