From 4662a61e7198eb1d1a80e004c5848921ece81087 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Thu, 22 Dec 2022 15:11:49 +0100 Subject: [PATCH] jellyfin: Whitelist gdevices --- hosts/architect/jellyfin.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/architect/jellyfin.nix b/hosts/architect/jellyfin.nix index 61956d3..99a8901 100644 --- a/hosts/architect/jellyfin.nix +++ b/hosts/architect/jellyfin.nix @@ -19,7 +19,7 @@ in nginx.virtualHosts.${domain} = { forceSSL = true; enableACME = true; - extraConfig = auth_block { access_role = "jellyfin"; whitelisted_ips = [ network.giuliopc-wg ]; } + + extraConfig = auth_block { access_role = "jellyfin"; whitelisted_ips = network.gdevices-wg; } + '' # External Javascript (such as cast_sender.js for Chromecast) must be whitelisted. #add_header Content-Security-Policy "default-src https: data: blob: http://image.tmdb.org; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' https://www.gstatic.com/cv/js/sender/v1/cast_sender.js https://www.gstatic.com/eureka/clank/95/cast_sender.js https://www.gstatic.com/eureka/clank/96/cast_sender.js https://www.gstatic.com/eureka/clank/97/cast_sender.js https://www.youtube.com blob:; worker-src 'self' blob:; connect-src 'self'; object-src 'none'; frame-ancestors 'self'";