Enable firewall and migrate Jellyfin to NixOS

This commit is contained in:
fi 2024-11-20 05:46:39 +01:00
parent 826c3ff28b
commit 07e6a8a597
10 changed files with 78 additions and 5 deletions

View file

@ -9,7 +9,7 @@
hostName = "jellyfin";
firewall = {
enable = true;
allowedTCPPorts = [ 80 443 ];
allowedTCPPorts = [ 80 443 8443 ];
};
};

View file

@ -15,6 +15,12 @@
port = 443;
ssl = true;
}
{
addr = "0.0.0.0";
port = 8443;
ssl = true;
proxyProtocol = true;
}
];
locations."= /" = {
return = "302 https://$host/web/";