Update README to reflect changes in nginx-mod-rtmp
This commit is contained in:
parent
f2ffacec01
commit
fce7380d19
53
README.md
53
README.md
|
@ -7,7 +7,7 @@
|
||||||
- Adjust all the `const`'s in Program.cs
|
- Adjust all the `const`'s in Program.cs
|
||||||
- Copy example.db to app.db
|
- Copy example.db to app.db
|
||||||
- Create yourself a user using `sqlite3`
|
- Create yourself a user using `sqlite3`
|
||||||
- Install [nginx-mod-rtmp](https://git.zotan.services/zotan/nginx-mod-rtmp)
|
- Install [nginx-mod-rtmp](https://git.zotan.services/zotan/nginx-mod-rtmp) (arch package: `aur/nginx-mod-rtmp-lhaus-git`)
|
||||||
- Configure nginx-mod-rtmp, example config below
|
- Configure nginx-mod-rtmp, example config below
|
||||||
- Start RTMPDash, example systemd unit below
|
- Start RTMPDash, example systemd unit below
|
||||||
|
|
||||||
|
@ -20,44 +20,35 @@
|
||||||
```
|
```
|
||||||
rtmp {
|
rtmp {
|
||||||
log_format rtmp '[$time_local] $command -> $app with key "$name" - $bytes_received bytes received ($session_readable_time)';
|
log_format rtmp '[$time_local] $command -> $app with key "$name" - $bytes_received bytes received ($session_readable_time)';
|
||||||
server {
|
server {
|
||||||
listen 1935;
|
listen 1935;
|
||||||
|
|
||||||
access_log /var/log/nginx/rtmp_access.log rtmp;
|
access_log /var/log/nginx/rtmp_access.log rtmp;
|
||||||
|
|
||||||
max_message 32M;
|
max_message 32M;
|
||||||
ping 1m;
|
ping 1m;
|
||||||
ping_timeout 10s;
|
ping_timeout 10s;
|
||||||
drop_idle_publisher 10s;
|
drop_idle_publisher 10s;
|
||||||
notify_method get;
|
notify_method get;
|
||||||
|
|
||||||
application ingress {
|
application ingress {
|
||||||
live on;
|
live on;
|
||||||
|
|
||||||
allow play 127.0.0.1;
|
allow play 127.0.0.1;
|
||||||
deny play all;
|
deny play all;
|
||||||
|
|
||||||
notify_relay_redirect on;
|
notify_relay_redirect on;
|
||||||
|
|
||||||
on_publish http://localhost:60001/api/authenticate;
|
on_publish http://localhost:60001/api/authenticate;
|
||||||
}
|
|
||||||
|
|
||||||
application src {
|
hls on;
|
||||||
live on;
|
hls_path /mnt/ssd_data/hls/src;
|
||||||
|
hls_fragment 1s;
|
||||||
allow publish 127.0.0.1;
|
|
||||||
deny publish all;
|
|
||||||
allow play 127.0.0.1;
|
|
||||||
deny play all;
|
|
||||||
|
|
||||||
hls on;
|
|
||||||
hls_path /mnt/ssd_data/hls/src;
|
|
||||||
hls_fragment 1s;
|
|
||||||
hls_fragment_naming system;
|
hls_fragment_naming system;
|
||||||
hls_playlist_length 60s;
|
hls_playlist_length 60s;
|
||||||
hls_allow_client_cache enabled;
|
hls_allow_client_cache enabled;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -137,11 +128,11 @@ player.fill(true);
|
||||||
### accompanying nginx config for VideoJS Player
|
### accompanying nginx config for VideoJS Player
|
||||||
```
|
```
|
||||||
location ~ ^/(.+)/(.+)$ {
|
location ~ ^/(.+)/(.+)$ {
|
||||||
rewrite ^/(.+)/(.+)$ /watch.php?stream=$1&profile=$2 last;
|
rewrite ^/(.+)/(.+)$ /watch.php?stream=$1&profile=$2 last;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/(.+)$ {
|
location ~ ^/(.+)$ {
|
||||||
rewrite ^/(.+)$ /watch.php?stream=$1&profile=src last;
|
rewrite ^/(.+)$ /watch.php?stream=$1&profile=src last;
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue