fix(logistics): more reliable connection

This commit is contained in:
arcnmx 2024-09-07 15:19:51 -07:00
parent 3e48fd26be
commit 4e43829934
2 changed files with 16 additions and 8 deletions

View file

@ -21,12 +21,18 @@ in {
name = "motion";
id = "kitchen";
};
settings.max_fails = 5;
};
"${upstreamNameKitchen}'stream".servers.service = {
"${upstreamNameKitchen}'stream".servers.service = let
motionServer = nginx.upstreams'.${upstreamNameKitchen}.servers.service;
in {
accessService = {
inherit (nginx.upstreams'.${upstreamNameKitchen}.servers.service.accessService) name id;
inherit (motionServer.accessService) name id;
port = "stream";
};
settings = {
inherit (motionServer.settings) max_fails;
};
};
${upstreamNamePrinter}.servers.service = {
accessService = {
@ -34,9 +40,11 @@ in {
id = "printercam";
};
};
"${upstreamNamePrinter}'stream".servers.service = {
"${upstreamNamePrinter}'stream".servers.service = let
motionServer = nginx.upstreams'.${upstreamNamePrinter}.servers.service;
in {
accessService = {
inherit (nginx.upstreams'.${upstreamNamePrinter}.servers.service.accessService) name id;
inherit (motionServer.accessService) name id;
port = "stream";
};
};