iizukanao / picam-streamer

Out-of-the-box SD card image for live streaming with Raspberry Pi
MIT License
62 stars 6 forks source link

How to configure http port? #16

Open chtoller opened 6 years ago

chtoller commented 6 years ago

Hi there,

is there any way to configure a different http port? node-rtsp-rtmp-server contains a config.coffee file, where the port could be configured, but that's not used by picam-streamer. I think :)

Reason for asking is that I need to serve a page that provides access to picam recordings. I don't have experience with node.js, therefore I'm thinking about installing apache. Well, if someone could explain how to serve some simple webpages with the included server.js, I would give that a try, too.

Thanks, Christian tethis IT, Austria

iizukanao commented 6 years ago

@chtoller You can change the server port by editing /home/pi/node-rtsp-rtmp-server/config.js (the extension is .js, not .coffee) and changing line 10 from serverPort: 80, to something like serverPort: 8080,. After the change, please reboot the Pi.

Also, you can serve static webpages by placing files in /home/pi/node-rtsp-rtmp-server/public/