mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
fix(logistics): more reliable connection
This commit is contained in:
parent
3e48fd26be
commit
4e43829934
2 changed files with 16 additions and 8 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue