Seperate jellyfin into its own file
This commit is contained in:
parent
6b8a64c374
commit
3ec61ce40d
4 changed files with 43 additions and 28 deletions
|
@ -310,22 +310,6 @@ in
|
|||
redir https://catnip.ee{uri} permanent
|
||||
'';
|
||||
|
||||
"vue.jellyfin.catnip.ee".extraConfig = ''
|
||||
tls {
|
||||
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
|
||||
resolvers 1.1.1.1
|
||||
}
|
||||
|
||||
reverse_proxy :${toString settings.ports.jellyfin_vue}
|
||||
'';
|
||||
"jellyfin.catnip.ee".extraConfig = ''
|
||||
tls {
|
||||
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
|
||||
resolvers 1.1.1.1
|
||||
}
|
||||
|
||||
reverse_proxy :${toString settings.ports.jellyfin}
|
||||
'';
|
||||
"confess.catnip.ee".extraConfig = ''
|
||||
tls {
|
||||
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
./games/palworld.nix
|
||||
./games/minecraft
|
||||
./services/mautrix.nix
|
||||
./services/jellyfin.nix
|
||||
inputs.lastfm-status.nixosModules.default
|
||||
inputs.confess.nixosModules.${system}.default
|
||||
inputs.common-modules.nixosModules.nixos-upgrade
|
||||
|
@ -242,7 +243,6 @@
|
|||
"/var/lib/syncthing"
|
||||
"/var/lib/matrix-synapse"
|
||||
"/var/lib/plex"
|
||||
"/var/lib/jellyfin"
|
||||
"/var/lib/mastodon"
|
||||
"/var/lib/confess-web"
|
||||
"/var/lib/gitea-runner"
|
||||
|
@ -263,7 +263,6 @@
|
|||
"/var/lib/radarr/.config/Radarr/MediaCover"
|
||||
"/var/lib/plex/transcode"
|
||||
"/var/lib/plex/Plex Media Server/Media"
|
||||
"/var/lib/jellyfin/transcodes"
|
||||
"/var/lib/matrix-synapse/media_store/remote_content"
|
||||
"/var/lib/matrix-synapse/media_store/remote_thumbnail"
|
||||
"/var/lib/mastodon/public-system/cache" # could be bad? https://github.com/mastodon/mastodon/discussions/21287
|
||||
|
@ -790,9 +789,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
# /var/lib/jellyfin
|
||||
jellyfin.enable = true;
|
||||
|
||||
cloudflare-dyndns = {
|
||||
enable = true;
|
||||
apiTokenFile = "/etc/secrets/cloudflare-dyndns.env";
|
||||
|
|
|
@ -69,13 +69,6 @@
|
|||
"--interval=60"
|
||||
];
|
||||
};
|
||||
jellyfin-vue = {
|
||||
autoStart = true;
|
||||
image = "docker.io/jellyfin/jellyfin-vue:unstable";
|
||||
ports = [
|
||||
"${toString settings.ports.jellyfin_vue}:80"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
42
services/jellyfin.nix
Normal file
42
services/jellyfin.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{ settings, ... }: {
|
||||
virtualisation.oci-containers.containers.jellyfin-vue = {
|
||||
autoStart = true;
|
||||
image = "docker.io/jellyfin/jellyfin-vue:unstable";
|
||||
ports = [
|
||||
"${toString settings.ports.jellyfin_vue}:80"
|
||||
];
|
||||
};
|
||||
|
||||
services = {
|
||||
# /var/lib/jellyfin
|
||||
jellyfin.enable = true;
|
||||
|
||||
caddy.virtualHosts = {
|
||||
"vue.jellyfin.catnip.ee".extraConfig = ''
|
||||
tls {
|
||||
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
|
||||
resolvers 1.1.1.1
|
||||
}
|
||||
|
||||
reverse_proxy :${toString settings.ports.jellyfin_vue}
|
||||
'';
|
||||
"jellyfin.catnip.ee".extraConfig = ''
|
||||
tls {
|
||||
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
|
||||
resolvers 1.1.1.1
|
||||
}
|
||||
|
||||
reverse_proxy :${toString settings.ports.jellyfin}
|
||||
'';
|
||||
};
|
||||
|
||||
borgbackup.jobs."borgbase" = {
|
||||
paths = [
|
||||
"/var/lib/jellyfin"
|
||||
];
|
||||
exclude = [
|
||||
"/var/lib/jellyfin/transcodes"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue