dots/modules/services/media/jellyfin.nix
Nico 7537a1e5b6
caddy: add block_non_private_ips snippet
blocks ips not in tailnet or in local network from accessing services
using `important block_non_private_ips` in their caddy config
2025-08-04 22:15:05 +10:00

20 lines
421 B
Nix

{ config, ... }:
{
# Streaming frontend
services.jellyfin = {
enable = true;
openFirewall = false;
group = "media";
};
users.users.jellyfin.extraGroups = [ "render" "video" ];
services.caddy.virtualHosts."watch.${config.homelab.domain}" = {
# useACMEHost = config.homelab.domain;
extraConfig = ''
reverse_proxy http://localhost:8096
import block_non_private_ips
'';
};
}