Add VideoJS nginx config to README.md
This commit is contained in:
parent
c75a435610
commit
bbb18c752d
17
README.md
17
README.md
|
@ -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;
|
||||
}
|
||||
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue