Setup jellyfin

This commit is contained in:
Nathan McCarty 2023-04-11 01:47:13 -04:00
parent 3478d5a2ae
commit 4cca8b7b1a
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
2 changed files with 26 additions and 0 deletions

View File

@ -90,6 +90,20 @@
volumes = [ "/var/lib/plex:/config" "/mnt/plex:/media" ];
extraOptions = [ "--device=/dev/dri:/dev/dri" ];
};
# Configure jellyfin
"jellyfin" = {
image = "lscr.io/linuxserver/jellyfin:latest";
environment = {
"PUID" = "1000";
"PGID" = "1000";
"TZ" = "America/New_York";
# "JELLFIN_PublishedServerUrl" = "jellyfin.mccarty.io";
"DOCKER_MODS" = "linuxserver/mods:jellyfin-opencl-intel";
};
ports = [ "8096:8096" "8920:8920" ];
volumes = [ "/var/lib/jellyfin:/config" "/mnt/plex:/media" ];
extraOptions = [ "--device=/dev/dri:/dev/dri" ];
};
# Configure tatulli - Plex Stats
"tautulli" = {
image = "lscr.io/linuxserver/tautulli:latest";
@ -182,6 +196,7 @@
# Make the containers depend on their mounts
systemd.services = {
"podman-plex" = { requires = [ "mnt-plex.mount" ]; };
"podman-jellyfin" = { requires = [ "mnt-plex.mount" ]; };
"podman-sabnzbd" = { requires = [ "mnt-scratch.mount" ]; };
"podman-lidarr" = { requires = [ "mnt-music.mount" ]; };
};

View File

@ -199,6 +199,17 @@
'';
};
};
"jellyfin.mccarty.io" = {
forceSSL = true;
useACMEHost = "mccarty.io";
locations."/" = {
proxyPass = "http://100.121.150.78:8920";
extraConfig = ''
allow 100.64.0.0/10;
deny all;
'';
};
};
"calibre.mccarty.io" = {
forceSSL = true;
useACMEHost = "mccarty.io";