nixos/hosts/homelab/plex.nix
2025-04-22 00:30:37 +02:00

18 lines
333 B
Nix

_: let
domain = "plex.nickolaj.com";
in {
services.nginx.virtualHosts."${domain}" = {
forceSSL = true;
enableACME = true;
http2 = true;
locations."/" = {
proxyWebsockets = true;
proxyPass = "http://localhost:32400/";
};
};
services.plex = {
enable = true;
openFirewall = true;
};
}