mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
refactor(mediabox): library mounts
This commit is contained in:
parent
228e2cf788
commit
59c61d021e
20 changed files with 416 additions and 101 deletions
|
|
@ -1,20 +1,8 @@
|
|||
{config, lib, ...}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
cfg = config.services.tautulli;
|
||||
{lib, ...}: let
|
||||
inherit (lib.modules) mkDefault;
|
||||
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}";
|
||||
};
|
||||
};
|
||||
services.tautulli = {
|
||||
enable = mkDefault true;
|
||||
port = mkDefault 8181;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue