2023-01-23 20:04:50 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
2023-05-11 10:35:26 +02:00
|
|
|
|
2023-10-05 09:27:38 +02:00
|
|
|
services.jellyfin = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
|
|
|
group = "media";
|
|
|
|
user = "media";
|
|
|
|
};
|
2023-05-11 10:35:26 +02:00
|
|
|
|
2023-01-23 20:04:50 +01:00
|
|
|
hardware.opengl = {
|
|
|
|
enable = true;
|
|
|
|
driSupport = true;
|
|
|
|
driSupport32Bit = true;
|
|
|
|
};
|
2023-10-05 09:27:38 +02:00
|
|
|
|
2023-02-24 02:01:18 +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";
|
|
|
|
};
|
2023-01-24 13:06:51 +01:00
|
|
|
};
|
2023-02-24 02:01:18 +01:00
|
|
|
in
|
|
|
|
{
|
|
|
|
enable = true;
|
|
|
|
virtualHosts. "flix.ingolf-wagner.de" = flixConfig;
|
|
|
|
virtualHosts. "video.ingolf-wagner.de" = flixConfig;
|
2023-01-24 13:06:51 +01:00
|
|
|
};
|
2023-01-23 20:04:50 +01:00
|
|
|
}
|