mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
parent
aded314f3c
commit
f52b1212cd
@ -204,6 +204,15 @@ http {
|
|||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~* /api/go2rtc([/]?.*)$ {
|
||||||
|
proxy_pass http://go2rtc;
|
||||||
|
rewrite ^/api/go2rtc(.*)$ /api$1 break;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "Upgrade";
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
}
|
||||||
|
|
||||||
location ~* /api/.*\.(jpg|jpeg|png)$ {
|
location ~* /api/.*\.(jpg|jpeg|png)$ {
|
||||||
add_header 'Access-Control-Allow-Origin' '*';
|
add_header 'Access-Control-Allow-Origin' '*';
|
||||||
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS';
|
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS';
|
||||||
|
@ -39,6 +39,8 @@ export default function System() {
|
|||||||
const cameraNames = Object.keys(cameras || emptyObject);
|
const cameraNames = Object.keys(cameras || emptyObject);
|
||||||
const processesNames = Object.keys(processes || emptyObject);
|
const processesNames = Object.keys(processes || emptyObject);
|
||||||
|
|
||||||
|
const { data: go2rtc } = useSWR('go2rtc');
|
||||||
|
|
||||||
const onHandleFfprobe = async (camera, e) => {
|
const onHandleFfprobe = async (camera, e) => {
|
||||||
if (e) {
|
if (e) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
@ -93,14 +95,16 @@ export default function System() {
|
|||||||
System <span className="text-sm">{service.version}</span>
|
System <span className="text-sm">{service.version}</span>
|
||||||
</Heading>
|
</Heading>
|
||||||
{config && (
|
{config && (
|
||||||
<Link
|
<span class="p-1">go2rtc {go2rtc && ( `${go2rtc.version} ` ) }
|
||||||
className="p-1 text-blue-500 hover:underline"
|
<Link
|
||||||
target="_blank"
|
className="text-blue-500 hover:underline"
|
||||||
rel="noopener noreferrer"
|
target="_blank"
|
||||||
href="/live/webrtc/"
|
rel="noopener noreferrer"
|
||||||
>
|
href="/live/webrtc/"
|
||||||
go2rtc dashboard
|
>
|
||||||
</Link>
|
dashboard
|
||||||
|
</Link>
|
||||||
|
</span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user