mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
chore(ci): nf-fmt-nix
This commit is contained in:
parent
4e43829934
commit
20cd95cf3c
2 changed files with 45 additions and 36 deletions
|
|
@ -79,7 +79,8 @@ in {
|
|||
streamLocations =
|
||||
map (mkStreamLocation upstreamNamePrinter) printerCams
|
||||
++ map (mkStreamLocation upstreamNameKitchen) kitchenCams;
|
||||
locations = {
|
||||
locations =
|
||||
{
|
||||
"/" = {
|
||||
return = "302 /kitchen/";
|
||||
};
|
||||
|
|
@ -107,7 +108,8 @@ in {
|
|||
};
|
||||
extraConfig = streamConfig;
|
||||
};
|
||||
} // mergeAttrsList streamLocations;
|
||||
}
|
||||
// mergeAttrsList streamLocations;
|
||||
listen' = {
|
||||
http = {};
|
||||
https.ssl = true;
|
||||
|
|
@ -130,7 +132,13 @@ in {
|
|||
locations = mapAttrs (name: location:
|
||||
location
|
||||
// {
|
||||
${if location ? proxy then "proxy" else null} = location.proxy // (mapDefaults {
|
||||
${
|
||||
if location ? proxy
|
||||
then "proxy"
|
||||
else null
|
||||
} =
|
||||
location.proxy
|
||||
// (mapDefaults {
|
||||
inherit (nginx.virtualHosts.kitchencam.locations.${name}.proxy) upstream path;
|
||||
});
|
||||
})
|
||||
|
|
|
|||
|
|
@ -45,7 +45,8 @@ in {
|
|||
restartIfChanged = false;
|
||||
};
|
||||
conf.gensokyo-zone.sharedMounts.unifi.path = mkDefault "/var/lib/unifi";
|
||||
in mkIf cfg.enable (mkMerge [
|
||||
in
|
||||
mkIf cfg.enable (mkMerge [
|
||||
conf
|
||||
(mkIf delayRestart restartConfig)
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue