Enable firewall and migrate Jellyfin to NixOS

This commit is contained in:
yuri 2023-08-02 22:46:07 +02:00
parent def599be28
commit 39bc88eb0f
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/";