Add VideoJS nginx config to README.md

This commit is contained in:
Laura Hausmann 2021-01-24 04:16:14 +01:00
parent c75a435610
commit bbb18c752d
Signed by: zotan
GPG key ID: 5EC1D38FFC321311

View file

@ -15,7 +15,7 @@
- Customize privacy policy to your environment if you plan on hosting it publicly
- Set up player, example code below
## nginx-mod-rtmp example config
### nginx-mod-rtmp example config
```
rtmp {
@ -61,7 +61,7 @@ rtmp {
}
```
## RTMPdash example systemd unit (development)
### RTMPdash example systemd unit (development)
```
[Unit]
Description=RTMPDash
@ -132,3 +132,16 @@ var player = videojs('hls-player', {liveui: true});
player.fill(true);
</script>
```
### accompanying nginx config for VideoJS Player
```
location ~ ^/(.+)/(.+)$ {
rewrite ^/(.+)/(.+)$ /watch.php?stream=$1&profile=$2 last;
}
location ~ ^/(.+)$ {
rewrite ^/(.+)$ /watch.php?stream=$1&profile=src last;
}
```