mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
20 lines
508 B
Nix
20 lines
508 B
Nix
{config, lib, ...}: let
|
|
inherit (lib.modules) mkIf;
|
|
cfg = config.services.tautulli;
|
|
in {
|
|
services = {
|
|
tautulli = {
|
|
enable = true;
|
|
port = 8181;
|
|
};
|
|
|
|
nginx.virtualHosts = {
|
|
"tautulli.${config.networking.domain}" = {
|
|
locations."/".proxyPass = "http://localhost:${toString cfg.port}";
|
|
};
|
|
"tautulli.local.${config.networking.domain}" = mkIf cfg.openFirewall {
|
|
locations."/".proxyPass = "http://localhost:${toString cfg.port}";
|
|
};
|
|
};
|
|
};
|
|
}
|