update config and readme
This commit is contained in:
parent
75bf96ce66
commit
3390c82b23
1
.gitignore
vendored
1
.gitignore
vendored
@ -98,3 +98,4 @@ Videos
|
|||||||
Videos/
|
Videos/
|
||||||
live
|
live
|
||||||
live/
|
live/
|
||||||
|
*.tar*
|
||||||
|
@ -1,15 +1,13 @@
|
|||||||
ffplayout-frontend
|
ffplayout-frontend
|
||||||
=====
|
=====
|
||||||
|
|
||||||
This web GUI is for managing [ffplayout_engine](https://github.com/ffplayout/ffplayout_engine) and it depend on [ffplayout-api](https://github.com/ffplayout/ffplayout-api).
|
This web GUI is for managing [ffplayout](https://github.com/ffplayout/ffplayout).
|
||||||
|
|
||||||
**The Interface is mostly made for 24/7 streaming.** Other scenarios like streaming in folder mode or playlists with no starting time will work, but is not shown correctly.
|
**The Interface is mostly made for 24/7 streaming.** Other scenarios like streaming in folder mode or playlists with no starting time will work, but is not shown correctly.
|
||||||
|
|
||||||
For a better understanding about the functionality, take a look to the screenshots below.
|
For a better understanding about the functionality, take a look to the screenshots below.
|
||||||
|
|
||||||
|
Read [install.md](docs/INSTALL.md) for manual installation.
|
||||||
You can install it on a fresh Debian like system with the [standalone installer](https://github.com/ffplayout/ffplayout-installer).
|
|
||||||
Or read the instruction [install.md](docs/INSTALL.md) for manual installation.
|
|
||||||
|
|
||||||
After installations you have to setup ssl for your **https** connections.
|
After installations you have to setup ssl for your **https** connections.
|
||||||
|
|
||||||
|
@ -1,36 +1,13 @@
|
|||||||
**We need a recent version of npm**
|
|
||||||
|
|
||||||
### OS Specific
|
|
||||||
On debian 10 you need to install:
|
|
||||||
|
|
||||||
```
|
|
||||||
apt install -y curl
|
|
||||||
```
|
|
||||||
|
|
||||||
```
|
|
||||||
curl -sL https://deb.nodesource.com/setup_14.x | bash -
|
|
||||||
```
|
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
-----
|
-----
|
||||||
|
|
||||||
- clone repo to **/var/www/ffplayout-frontend**
|
- download latest **..dist** [release](https://github.com/ffplayout/ffplayout-frontend/releases/latest/)
|
||||||
- cd in repo
|
- unpack and dist content to **/var/www/ffplayout-frontend**
|
||||||
- install dependencies: `npm install`
|
|
||||||
- create **.env** file:
|
|
||||||
```
|
|
||||||
BASE_URL='http://example.org'
|
|
||||||
API_URL='/'
|
|
||||||
```
|
|
||||||
- in dev mode `BASE_URL` should be `http://localhost:3000` and `API_URL=http://localhost:8000`
|
|
||||||
|
|
||||||
- create symlink for the media folder
|
- create symlink for the media folder
|
||||||
- when your media folder is a subfolder (for example `/opt/ffplayout/media`) create the same folder structure under **static**:
|
- when your media folder is a subfolder (for example `/opt/ffplayout/media`) create the same folder structure under **/var/www/ffplayout-frontend**:
|
||||||
- `mkdir -p /var/www/ffplayout-frontend/static/opt/ffplayout`
|
- `mkdir -p /var/www/ffplayout-frontend/opt/ffplayout`
|
||||||
- `ln -s /opt/ffplayout/media /var/www/ffplayout-frontend/static/opt/ffplayout/`
|
- `ln -s /opt/ffplayout/media /var/www/ffplayout-frontend/opt/ffplayout/`
|
||||||
- build app: `npm run build`
|
|
||||||
|
|
||||||
Your frontend should be now in **/var/www/ffplayout-frontend/dist** folder, which is included in the nginx config.
|
|
||||||
|
|
||||||
Copy **docs/ffplayout.conf** to **/etc/nginx/sites-available/** and make a symlink:
|
Copy **docs/ffplayout.conf** to **/etc/nginx/sites-available/** and make a symlink:
|
||||||
|
|
||||||
|
@ -31,11 +31,11 @@ server {
|
|||||||
return 204;
|
return 204;
|
||||||
}
|
}
|
||||||
|
|
||||||
root /var/www/ffplayout-frontend/dist/;
|
root /var/www/ffplayout-frontend/;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/(api|admin|auth|api-auth) {
|
location ~ ^/(api|auth) {
|
||||||
if ($http_origin ~ '^https?://(localhost|ffplayout\.local)') {
|
if ($http_origin ~ '^https?://(localhost|ffplayout\.local)') {
|
||||||
add_header 'Access-Control-Allow-Origin' "$http_origin" always;
|
add_header 'Access-Control-Allow-Origin' "$http_origin" always;
|
||||||
add_header 'Access-Control-Allow-Credentials' 'true' always;
|
add_header 'Access-Control-Allow-Credentials' 'true' always;
|
||||||
@ -61,18 +61,14 @@ server {
|
|||||||
proxy_busy_buffers_size 256k;
|
proxy_busy_buffers_size 256k;
|
||||||
send_timeout 36000s;
|
send_timeout 36000s;
|
||||||
proxy_no_cache 1;
|
proxy_no_cache 1;
|
||||||
proxy_pass http://127.0.0.1:8001;
|
proxy_pass http://127.0.0.1:8000;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location /static/ {
|
location /live/ {
|
||||||
alias /var/www/ffplayout-api/ffplayout/static/;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /live/ {
|
|
||||||
alias /var/www/srs/live/;
|
alias /var/www/srs/live/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /preview/stream.flv {
|
location /preview/stream.flv {
|
||||||
# HTTP-FLV preview
|
# HTTP-FLV preview
|
||||||
proxy_pass http://preview.local:8080/live/stream.flv;
|
proxy_pass http://preview.local:8080/live/stream.flv;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user