Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (35 sloc) 909 Bytes
{ config, pkgs, ... }:
{
# Make sure to have nginx enabled
services.nginx.enable = true;
services.nginx.virtualHosts = {
"jellyfin.elis.nu" = {
locations."/".proxyPass = "http://127.0.0.1:8096/";
};
};
# Enable Jellyfin
containers.jellyfin = {
autoStart = true;
additionalCapabilities = [ "CAP_IPC_LOCK" ];
config = { config, pkgs, ... }: {
services.jellyfin.enable = true;
};
forwardPorts = [
{ containerPort = 8096; hostPort = 8096; protocol = "tcp"; }
];
bindMounts = {
"/var/lib/jellyfin" = {
mountPoint = "/var/lib/jellyfin";
hostPath = "/persistent/var/lib/jellyfin";
isReadOnly = false;
};
"/mnt/hactar" = {
mountPoint = "/media";
hostPath = "/mnt/hactar";
isReadOnly = true;
};
};
};
# Open NGiNX port
networking.firewall.allowedTCPPorts = [ 80 ];
}
You can’t perform that action at this time.