nixos: services: nginx: use attrset for vhosts

Attribute sets compose better than lists, it was a mistake to use a list
in the first place...
This commit is contained in:
Bruno BELANYI 2023-12-25 19:25:08 +01:00
parent 26950332c7
commit faa87743e5
22 changed files with 118 additions and 118 deletions

View file

@ -28,12 +28,12 @@ in
};
};
my.services.nginx.virtualHosts = [
{
my.services.nginx.virtualHosts = {
jackett = {
subdomain = "jackett";
port = jackettPort;
}
];
};
};
})
(lib.mkIf cfg.nzbhydra.enable {
@ -41,12 +41,12 @@ in
enable = true;
};
my.services.nginx.virtualHosts = [
{
my.services.nginx.virtualHosts = {
nzbhydra = {
subdomain = "nzbhydra";
port = nzbhydraPort;
}
];
};
};
})
(lib.mkIf cfg.prowlarr.enable {
@ -54,12 +54,12 @@ in
enable = true;
};
my.services.nginx.virtualHosts = [
{
my.services.nginx.virtualHosts = {
prowlarr = {
subdomain = "prowlarr";
port = prowlarrPort;
}
];
};
};
services.fail2ban.jails = {
prowlarr = ''