mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 01:35:22 +03:00
Setup specific restream modules
This commit is contained in:
parent
8488f5a5ea
commit
fc68ebb312
@ -178,13 +178,16 @@ http {
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
|
||||
location ~ /restream/(.*)$ {
|
||||
location /restream/ {
|
||||
|
||||
location ~ /mp4/(.*)$ {
|
||||
proxy_pass http://go2rtc/api/stream.mp4?src=$1;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
}
|
||||
|
||||
location /go2rtc/ {
|
||||
proxy_pass http://go2rtc/;
|
||||
|
||||
@ -108,7 +108,7 @@ export default function Camera({ camera }) {
|
||||
playbackRates: [1],
|
||||
sources: [
|
||||
{
|
||||
src: `${apiHost}/restream/${camera}`,
|
||||
src: `${apiHost}/restream/mp4/${camera}`,
|
||||
type: 'video/mp4',
|
||||
},
|
||||
],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user