mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore: nf-fmt-nix
This commit is contained in:
parent
7486517713
commit
9903866044
160 changed files with 4570 additions and 3019 deletions
|
|
@ -12,8 +12,15 @@
|
|||
in {
|
||||
config.services.nginx = {
|
||||
virtualHosts = let
|
||||
url = access.proxyUrlFor { inherit system; service = motion; };
|
||||
streamUrl = access.proxyUrlFor { inherit system; service = motion; portName = "stream"; };
|
||||
url = access.proxyUrlFor {
|
||||
inherit system;
|
||||
service = motion;
|
||||
};
|
||||
streamUrl = access.proxyUrlFor {
|
||||
inherit system;
|
||||
service = motion;
|
||||
portName = "stream";
|
||||
};
|
||||
extraConfig = ''
|
||||
proxy_redirect off;
|
||||
proxy_buffering off;
|
||||
|
|
@ -32,7 +39,7 @@ in {
|
|||
};
|
||||
};
|
||||
listen' = {
|
||||
http = { };
|
||||
http = {};
|
||||
https.ssl = true;
|
||||
stream = {
|
||||
enable = mkDefault motion.ports.stream.enable;
|
||||
|
|
@ -49,9 +56,12 @@ in {
|
|||
inherit name listen';
|
||||
ssl.cert.copyFromVhost = "kitchencam";
|
||||
local.enable = true;
|
||||
locations = mapAttrs (name: location: location // {
|
||||
proxyPass = mkDefault nginx.virtualHosts.kitchencam.locations.${name}.proxyPass;
|
||||
}) locations;
|
||||
locations = mapAttrs (name: location:
|
||||
location
|
||||
// {
|
||||
proxyPass = mkDefault nginx.virtualHosts.kitchencam.locations.${name}.proxyPass;
|
||||
})
|
||||
locations;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue