mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
19 lines
333 B
Nix
19 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;
|
||
|
|
};
|
||
|
|
}
|