mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
feat(tautulli): lan access
This commit is contained in:
parent
c009a78e33
commit
1f1ad85c46
3 changed files with 24 additions and 6 deletions
|
|
@ -1,12 +1,21 @@
|
|||
{config, ...}: {
|
||||
{config, lib, ...}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
cfg = config.services.tautulli;
|
||||
in {
|
||||
services = {
|
||||
tautulli = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
port = 8181;
|
||||
};
|
||||
|
||||
nginx.virtualHosts."tautulli.gensokyo.zone" = {
|
||||
locations."/".proxyPass = "http://localhost:${toString config.services.tautulli.port}";
|
||||
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}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue