mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
frigate old
This commit is contained in:
parent
3b47e24783
commit
1841fdbefd
2 changed files with 42 additions and 14 deletions
|
|
@ -44,6 +44,7 @@ lib.mkIf config.user.overseer.enable {
|
|||
"bookstack.wanderingcrow.net" = {};
|
||||
"cache.wanderingcrow.net" = {};
|
||||
"openhab.wanderingcrow.net" = {};
|
||||
"frigate.wanderingcrow.net" = {};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,26 +4,29 @@
|
|||
...
|
||||
}:
|
||||
lib.mkIf config.user.overseer.enable {
|
||||
services.go2rtc = {
|
||||
enable = true;
|
||||
settings.streams = {
|
||||
wce-0001 = [
|
||||
"ffmpeg:#input=-timeout 30000000 -i rtsp://thingino:thingino@192.168.0.173:554/ch0"
|
||||
"ffmpeg:wce-0001#audio=opus"
|
||||
];
|
||||
wce-0001_sub = "ffmpeg:#input=-timeout 30000000 -i rtsp://thingino:thingino@192.168.0.173:554/ch1";
|
||||
wce-0002 = [
|
||||
"ffmpeg:#input=-timeout 30000000 -i rtsp://thingino:thingino@192.168.0.26:554/ch0"
|
||||
"ffmpeg:wce-0002#audio=opus"
|
||||
];
|
||||
wce-0002_sub = "ffmpeg:#input=-timeout 30000000 -i rtsp://thingino:thingino@192.168.0.26:554/ch1";
|
||||
};
|
||||
};
|
||||
|
||||
services.frigate = {
|
||||
enable = true;
|
||||
hostname = "frigate.wanderingcrow.net";
|
||||
settings = {
|
||||
go2rtc = {
|
||||
streams = {
|
||||
wce-0001 = [
|
||||
"ffmpeg:#input=-timeout 30000000 -i rtsp://thingino:thingino@192.168.0.173:554/ch0"
|
||||
"ffmpeg:wce-0001#audio=opus"
|
||||
];
|
||||
wce-0001_sub = "ffmpeg:#input=-timeout 30000000 -i rtsp://thingino:thingino@192.168.0.173:554/ch1";
|
||||
wce-0002 = [
|
||||
"ffmpeg:#input=-timeout 30000000 -i rtsp://thingino:thingino@192.168.0.26:554/ch0"
|
||||
"ffmpeg:wce-0002#audio=opus"
|
||||
];
|
||||
wce-0002_sub = "ffmpeg:#input=-timeout 30000000 -i rtsp://thingino:thingino@192.168.0.26:554/ch1";
|
||||
};
|
||||
};
|
||||
cameras = {
|
||||
wce-0001 = {
|
||||
detect.enabled = false;
|
||||
ffmpeg = {
|
||||
inputs = [
|
||||
{
|
||||
|
|
@ -47,6 +50,7 @@ lib.mkIf config.user.overseer.enable {
|
|||
live.stream_name = "wce-0001";
|
||||
};
|
||||
wce-0002 = {
|
||||
detect.enabled = false;
|
||||
ffmpeg = {
|
||||
inputs = [
|
||||
{
|
||||
|
|
@ -72,4 +76,27 @@ lib.mkIf config.user.overseer.enable {
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."${config.services.frigate.hostname}" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "frigate.wanderingcrow.net";
|
||||
};
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedProxySettings = true;
|
||||
virtualHosts = {
|
||||
"rtc.wanderingcrow.net" = {
|
||||
locations."/" = {
|
||||
extraConfig = ''
|
||||
allow 192.168.0.0/16;
|
||||
allow 10.8.0.0/24;
|
||||
allow 24.179.20.202;
|
||||
deny all;
|
||||
'';
|
||||
proxyPass = "http://localhost:1984";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue