|
|
@ -6,10 +6,10 @@ ReCast is a multi platform streaming tool written in PHP and uses nginx RTMP. Yo |
|
|
|
|
|
|
|
|
|
|
|
## Installation |
|
|
|
## Installation |
|
|
|
|
|
|
|
|
|
|
|
* You have to install a nginx server with rtmp support to ```/opt/nginx-rtmp/``` or something else |
|
|
|
* You have to install a nginx server [Tutorial](https://github.com/recastin/panel/wiki/Install-Nginx-RTMP) |
|
|
|
* Checkout this project, copy .env.dist to .env and adjust the settings |
|
|
|
* Checkout this project, copy .env.dist to .env and adjust the settings |
|
|
|
* Run ```composer install --no-dev -o``` |
|
|
|
* Run ```composer install --no-dev -o``` |
|
|
|
* Generate JWT Keys, following [Documentation](https://github.com/lexik/LexikJWTAuthenticationBundle/blob/HEAD/Resources/doc/index.md#installation) |
|
|
|
* Generate JWT Keys, follow [Documentation](https://github.com/lexik/LexikJWTAuthenticationBundle/blob/HEAD/Resources/doc/index.md#installation) |
|
|
|
* Create the database ```php bin/console doctrine:migrations:migrate``` |
|
|
|
* Create the database ```php bin/console doctrine:migrations:migrate``` |
|
|
|
* Create a new crontab entry which runs every minute ```php bin/console recast:cron``` |
|
|
|
* Create a new crontab entry which runs every minute ```php bin/console recast:cron``` |
|
|
|
* Create a new user with ```php bin/console recast:create:user``` |
|
|
|
* Create a new user with ```php bin/console recast:create:user``` |
|
|
@ -21,7 +21,7 @@ ReCast is a multi platform streaming tool written in PHP and uses nginx RTMP. Yo |
|
|
|
| APP_ENV | Which environment it runs | prod | |
|
|
|
| APP_ENV | Which environment it runs | prod | |
|
|
|
| DATABASE_URL | Database credentials as URL | DATABASE_URL=mysql://USER:PASS@HOST:3306/DB_NAME | |
|
|
|
| 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/ | |
|
|
|
| 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 should be http | http://try.recast.in | |
|
|
|
| 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 | |
|
|
|
| NGINX_RESTART_COMMAND | Reload command for nginx rtmp | systemctl reload nginx-rtmp | |
|
|
|
|
|
|
|
|
|
|
|
**Docker Setup will be following** |
|
|
|
**Docker Setup will be following** |
|
|
|