update config and readme

This commit is contained in:
jb-alvarado 2022-07-06 16:54:41 +02:00
parent 75bf96ce66
commit 3390c82b23
4 changed files with 13 additions and 41 deletions

1
.gitignore vendored
View File

@ -98,3 +98,4 @@ Videos
Videos/
live
live/
*.tar*

View File

@ -1,15 +1,13 @@
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.
For a better understanding about the functionality, take a look to the screenshots below.
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.
Read [install.md](docs/INSTALL.md) for manual installation.
After installations you have to setup ssl for your **https** connections.

View File

@ -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
-----
- clone repo to **/var/www/ffplayout-frontend**
- cd in repo
- 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`
- download latest **..dist** [release](https://github.com/ffplayout/ffplayout-frontend/releases/latest/)
- unpack and dist content to **/var/www/ffplayout-frontend**
- 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**:
- `mkdir -p /var/www/ffplayout-frontend/static/opt/ffplayout`
- `ln -s /opt/ffplayout/media /var/www/ffplayout-frontend/static/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.
- 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/opt/ffplayout`
- `ln -s /opt/ffplayout/media /var/www/ffplayout-frontend/opt/ffplayout/`
Copy **docs/ffplayout.conf** to **/etc/nginx/sites-available/** and make a symlink:

View File

@ -31,11 +31,11 @@ server {
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)') {
add_header 'Access-Control-Allow-Origin' "$http_origin" always;
add_header 'Access-Control-Allow-Credentials' 'true' always;
@ -61,18 +61,14 @@ server {
proxy_busy_buffers_size 256k;
send_timeout 36000s;
proxy_no_cache 1;
proxy_pass http://127.0.0.1:8001;
proxy_pass http://127.0.0.1:8000;
}
location /static/ {
alias /var/www/ffplayout-api/ffplayout/static/;
}
location /live/ {
location /live/ {
alias /var/www/srs/live/;
}
location /preview/stream.flv {
# HTTP-FLV preview
proxy_pass http://preview.local:8080/live/stream.flv;