Oliver Davies
07fde36fb0
- Change domain to opdavies.uk as this works with HTTPS/SSL. - Switch Nginx to Caddy.
23 lines
481 B
Nix
23 lines
481 B
Nix
{ config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
options.features.homelab.jellyfin.enable = mkEnableOption "Enable jellyfin";
|
|
|
|
config = mkIf config.features.homelab.jellyfin.enable {
|
|
services.jellyfin = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
group = "media";
|
|
configDir = "/mnt/media/jellyfin";
|
|
};
|
|
|
|
services.caddy.virtualHosts."jellyfin.opdavies.uk" = {
|
|
useACMEHost = "opdavies.uk";
|
|
|
|
extraConfig = "reverse_proxy localhost:8096";
|
|
};
|
|
};
|
|
}
|