add some more info on my homepage dashboard
This commit is contained in:
parent
38069c344a
commit
b19b7b6dce
4 changed files with 31 additions and 5 deletions
|
@ -4,6 +4,7 @@
|
|||
...
|
||||
}: let
|
||||
inherit (vars.common) domain;
|
||||
bridge = config.vpnNamespaces."wg".bridgeAddress;
|
||||
in {
|
||||
services.homepage-dashboard = {
|
||||
enable = true;
|
||||
|
@ -28,6 +29,10 @@ in {
|
|||
"transmission" = {
|
||||
href = "http://transmission.hopper.xun.host";
|
||||
icon = "transmission";
|
||||
widget = {
|
||||
type = "transmission";
|
||||
url = "http://${config.vpnNamespaces."wg".namespaceAddress}:${toString config.services.transmission.settings.rpc-port}";
|
||||
};
|
||||
};
|
||||
}
|
||||
{
|
||||
|
@ -56,12 +61,20 @@ in {
|
|||
"adguard home" = {
|
||||
href = "http://adguard.hopper.xun.host";
|
||||
icon = "adguard-home";
|
||||
widget = {
|
||||
type = "adguard";
|
||||
url = "http://localhost:${toString config.services.adguardhome.port}";
|
||||
};
|
||||
};
|
||||
}
|
||||
{
|
||||
"prometheus" = {
|
||||
href = "http://prometheus.hopper.xun.host";
|
||||
icon = "prometheus";
|
||||
widget = {
|
||||
type = "prometheus";
|
||||
url = "http://localhost:${toString config.services.prometheus.port}";
|
||||
};
|
||||
};
|
||||
}
|
||||
{
|
||||
|
|
|
@ -26,6 +26,17 @@
|
|||
targets = ["${config.vpnNamespaces."wg".namespaceAddress}:2019"];
|
||||
};
|
||||
}
|
||||
{
|
||||
job_name = "slskd";
|
||||
static_configs = lib.singleton {
|
||||
targets = ["${config.vpnNamespaces."wg".namespaceAddress}:${toString config.services.slskd.settings.web.port}"];
|
||||
};
|
||||
metric_relabel_configs = lib.singleton {
|
||||
source_labels = ["__name__"];
|
||||
regex = "node_.*";
|
||||
action = "drop";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
@ -19,11 +19,13 @@
|
|||
speed-limit-up = 100 * mbit;
|
||||
speed-limit-down-enabled = true;
|
||||
speed-limit-down = 150 * mbit;
|
||||
rpc-authentication-required = true;
|
||||
peer-port = 11936;
|
||||
rpc-authentication-required = false;
|
||||
rpc-bind-address = "0.0.0.0";
|
||||
rpc-whitelist = "127.0.0.1,192.168.\*.\*";
|
||||
rpc-host-whitelist = "transmission.hopper.xun.host";
|
||||
rpc-whitelist-enabled = true;
|
||||
rpc-whitelist = "127.0.0.1,192.168.\*.\*,100.\*.\*.\*";
|
||||
};
|
||||
credentialsFile = config.sops.secrets.transmission.path;
|
||||
# credentialsFile = config.sops.secrets.transmission.path;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -57,8 +57,8 @@
|
|||
80 # caddy
|
||||
443 # caddy
|
||||
2019 # caddy admin, for prometheus metrics
|
||||
1900 # jellyfin discovery
|
||||
7359 # jellyfin discovery
|
||||
config.services.transmission.settings.rpc-port
|
||||
config.services.slskd.settings.web.port
|
||||
];
|
||||
in (lib.map (x: {
|
||||
from = x;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue