nixos-config/machines/orbi/media-jellyfin.nix

43 lines
914 B
Nix
Raw Permalink Normal View History

2024-08-29 03:26:04 +02:00
{
config,
lib,
pkgs,
...
}:
2023-12-09 17:15:50 +01:00
{
services.jellyfin = {
enable = true;
openFirewall = true;
group = "media";
user = "media";
};
2024-06-26 03:00:17 +02:00
hardware.graphics.enable = true;
hardware.graphics.enable32Bit = true;
2023-12-09 17:15:50 +01:00
services.nginx =
let
flixConfig = {
forceSSL = true;
enableACME = true;
extraConfig = ''
# Security / XSS Mitigation Headers
# NOTE: X-Frame-Options may cause issues with the webOS app
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
'';
locations."/" = {
recommendedProxySettings = true;
proxyWebsockets = true;
proxyPass = "http://localhost:8096";
};
};
in
{
enable = true;
2024-08-29 03:26:04 +02:00
virtualHosts."flix.ingolf-wagner.de" = flixConfig;
2023-12-09 17:15:50 +01:00
};
}