Enable firewall and migrate Jellyfin to NixOS

This commit is contained in:
fi 2023-08-02 22:46:07 +02:00
parent 693c6da88a
commit 5c63b5d1a3
Signed by: fi
SSH key fingerprint: SHA256:d+6fQoDPMbSFK95zRVflRKZLRKF4cPSQb7VIxYkhFsA
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/";