Skip to content

Commit

Permalink
gave homepage the ability to ping, setup homepage to monitor all tail…
Browse files Browse the repository at this point in the history
…scale docker nodes
  • Loading branch information
yomaq committed Mar 29, 2024
1 parent 92f835e commit 2eb9edf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/containers/tailscale-submodule.nix
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ let
];
mkHomepageConfig = name: cfg: { " " = {
href = "http://${cfg.TShostname}.${tailnetName}.ts.net";
# ping = "100.89.20.102";
ping = "${cfg.TShostname}.${tailnetName}.ts.net";
description = "${cfg.TShostname}";
};};
in
Expand Down
3 changes: 2 additions & 1 deletion modules/hosts/homepage/nixos.nix
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,13 @@ in
description = "Homepage Dashboard";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
path = [ pkgs.unixtools.ping ];

environment = {
HOMEPAGE_CONFIG_DIR = configDir;
PORT = toString cfg.listenPort;
LOG_TARGETS = lib.mkIf managedConfig "stdout";
ping = lib.getExe pkgs.unixtools.ping;
LOG_LEVEL = "debug";
};

serviceConfig = {
Expand Down

0 comments on commit 2eb9edf

Please sign in to comment.