Simple web interface (with bootstrap) to change Facebook and Youtube streamkey with basic password in Apache module .htaccess
for raspberry pi restrem server. (works on my 3b+)
- Setup a RTMP restream server with stunnel (for Facebook live), you can follow this tuto for Raspberry pi: https://gist.github.com/xiCO2k/e378be37e933b3f5c6c106ba149f34af
- Add basic Authentication in Nginx: https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-http-basic-authentication/
- Now it is time to setup the web interface: In your
/etc/nginx/nginx.conf
, add the following in the include section:include /var/www/html/stream/restream.conf;
(for www.exemple.com/stream) or wherever you put your restream.conf file. - Put all files to the root of your server (or in subfolder
/var/www/html/stream/
for (www.exemple.com/stream), renamehtaccess
to.htaccess
.
Et Voilà !
On OBS:
Service: Custom
Server: rtmp://<<ngnix server IP address>>/live
Stream Key: test
I even set an Dynamics DNS with my provider with ddclient
, and NAT, thus accessible from anywhere: https://samhobbs.co.uk/2015/01/dynamic-dns-ddclient-raspberry-pi-and-ubuntu
I set up as well a Let's Encrypt
certificate : https://www.nginx.com/blog/using-free-ssltls-certificates-from-lets-encrypt-with-nginx/
Enjoy
C.