ReCast is a multi platform streaming tool written in PHP and uses nginx RTMP. You can stream through one server to multiple services
- You have to install a nginx server Tutorial
- Checkout this project
- Run
composer install --no-dev -o - Run
php bin/console recast:setup - Create the tables
php bin/console doctrine:migrations:migrate - Create a new user with
php bin/console recast:create:user - Create a new crontab entry which runs every minute
php bin/console recast:cron - Environment variable
APP_HOSTshould point to a http server, nginx rtmp does not support https.
| Name | Description | Example |
|---|---|---|
| APP_ENV | Which environment it runs | prod |
| DATABASE_URL | Database credentials as URL | DATABASE_URL=mysql://USER:PASS@HOST:3306/DB_NAME |
| NGINX_CONFIG_DIR | Folder where nginx.conf is located | /opt/nginx-rtmp/conf/ |
| APP_HOST | URL which is used in nginx rtmp conf, This address must be http | http://try.recast.in |
| NGINX_RESTART_COMMAND | Reload command for nginx rtmp | systemctl reload nginx-rtmp |
Docker Setup will be following




