A simple camera streaming solution using Docker, NGINX, and RTMP.
-
Clone this repository to your server:
git clone <repository-url> cd ghost_mvp -
Run the setup script to create necessary files and directories:
chmod +x setup.sh ./setup.shThis will create a default user (admin/ghost) for web access.
-
Start the Docker containers:
docker-compose up -d -
Your streaming server is now running! The web interface is available at:
http://your-server-ip
-
Copy the
raspberry_pi_setup.shscript to your Raspberry Pi -
Edit the script to set your server IP:
nano raspberry_pi_setup.shUpdate the
SERVER_IPvariable with your Digital Ocean server's IP address -
Make the script executable and run it:
chmod +x raspberry_pi_setup.sh ./raspberry_pi_setup.sh
- Open a web browser and navigate to
http://your-server-ip - Enter the login credentials (default: admin/ghost)
- The camera stream should appear in the web interface
- This setup uses basic authentication only
- For production use, consider:
- Adding HTTPS with Let's Encrypt
- Implementing IP restrictions
- Using stronger authentication methods
- To change the login credentials, modify the setup.sh script
- Edit nginx/nginx.conf to customize streaming settings
- Modify web/index.html to customize the web interface