nixos: Set up remote printing
All checks were successful
CI / Check, build and cache Nix flake (push) Successful in 27m42s
All checks were successful
CI / Check, build and cache Nix flake (push) Successful in 27m42s
This commit is contained in:
parent
51c5578840
commit
8e9b750ac8
@ -2,7 +2,7 @@
|
||||
let
|
||||
inherit (builtins) mapAttrs toJSON;
|
||||
inherit (lib) mkMerge mkDefault genAttrs flatten concatStringsSep;
|
||||
inherit (lib.my.c) pubDomain;
|
||||
inherit (lib.my.c) pubDomain home;
|
||||
inherit (lib.my.c.nginx) proxyHeaders;
|
||||
inherit (config.networking) domain;
|
||||
|
||||
@ -396,6 +396,28 @@ in
|
||||
};
|
||||
useACMEHost = pubDomain;
|
||||
};
|
||||
|
||||
"pront.${pubDomain}" = mkMerge [
|
||||
{
|
||||
locations."/" = mkMerge [
|
||||
{
|
||||
proxyPass = "http://stream-hi.${home.domain}:5000";
|
||||
proxyWebsockets = true;
|
||||
extraConfig = proxyHeaders;
|
||||
}
|
||||
(ssoLoc "generic")
|
||||
];
|
||||
locations."~* ^/webcam/(.*)" = mkMerge [
|
||||
{
|
||||
proxyPass = "http://stream-hi.${home.domain}:5050/$1$is_args$args";
|
||||
extraConfig = proxyHeaders;
|
||||
}
|
||||
(ssoLoc "generic")
|
||||
];
|
||||
useACMEHost = pubDomain;
|
||||
}
|
||||
(ssoServer "generic")
|
||||
];
|
||||
};
|
||||
|
||||
minio =
|
||||
|
@ -55,8 +55,8 @@
|
||||
extraConfig = {
|
||||
plugins = {
|
||||
classicwebcam = {
|
||||
snapshot = "http://${config.networking.fqdn}:5050/?action=snapshot";
|
||||
stream = "http://${config.networking.fqdn}:5050/?action=stream";
|
||||
snapshot = "/webcam/?action=snapshot";
|
||||
stream = "/webcam/?action=stream";
|
||||
streamRatio = "4:3";
|
||||
};
|
||||
};
|
||||
|
@ -1,12 +1,13 @@
|
||||
-----BEGIN AGE ENCRYPTED FILE-----
|
||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHNzaC1lZDI1NTE5IFZ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XFXcFJPUEJRTmJVK25jNFM2eUkzd3VSaVpJ
|
||||
MW0wTTlDZGFmMFhBMVEKRHzl+MWwD1N16bywVC9LFKmLTJeTVLww0pa20th9HEhE
|
||||
AePSzNsp2xUhESxBDmQDjS3E+s88oCd0D8y3pFmV4Nmf2yPNxbMu8gPVvNmhLAFA
|
||||
UR6aTjnfUFJpIXQgPgTncT99kF1YPgF0/X5hqe1DjZneRRTLgPp83me2cF43RDqf
|
||||
C4QhJWaqKf8ofqNKfqxvmcKmXNhJG1KEokMyKqPzaw==
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
|
Loading…
Reference in New Issue
Block a user