Changed caddy config

This commit is contained in:
2025-06-03 19:24:29 +02:00
parent 9fd98e97fe
commit 5da7636a42
19 changed files with 97 additions and 54 deletions

View File

@@ -0,0 +1,36 @@
{ config, lib, ... }:
with lib;
let
cfg = config.settings.containers.jellyfin;
in {
options = {
settings.containers.jellyfin.enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = ''
Enable jellyfin container
'';
};
};
config = mkIf cfg.enable {
services.podman.containers.jellyfin = {
image = "jellyfin:jellyfin";
network = "proxy";
volumes = [
"%h/containers/jellyfin/data:/data"
"%h/containers/jellyfin/cache:/cache"
"%h/media:/media"
];
userNS = "keep-id";
};
settings.containers.caddy.routes.tbmrs.routes.jellyfin = {
name = "jellyfin";
host = "watch";
url = "jellyfin:8096";
};
};
}