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

@ -17,8 +17,8 @@ in
# Set-up media group
users.groups.media = { };
my.services.nginx.virtualHosts = [
{
my.services.nginx.virtualHosts = {
jellyfin = {
subdomain = "jellyfin";
port = 8096;
extraConfig = {
@ -33,7 +33,7 @@ in
proxyWebsockets = true;
};
};
}
];
};
};
};
}