Setup jellyfin

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

View File

@ -90,6 +90,19 @@
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";
};
ports = [ "8096:8096" "8920:8920" "7359:7359" "1900:1900" ];
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 +195,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";