Home

infra @7dbb0dae660bf459ec03d433723a772df59e723c - refs - log -
-
https://git.jolheiser.com/infra.git
dragonwell flake
infra / shincha / services / beszel.nix
- raw -
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, config, ... }:
let
  enable = true;
  host = "monit";
in
lib.mkIf enable {
  age.secrets.beszel-shincha.file = ../../secrets/beszel-shincha.age;
  services = {
    beszel = {
      agent = {
        enable = true;
        environment.LOG_LEVEL = "info";
        environmentFile = config.age.secrets.beszel-shincha.path;
      };
      hub = {
        enable = true;
        environment = {
          APP_URL = "https://${host}";
          DISABLE_PASSWORD_AUTH = "true";
        };
      };
    };
    tailproxy.beszel = {
      enable = true;
      hostname = host;
      authKey = "tskey-auth-krRJB4JVL321CNTRL-Vfaa8HZwsVXzTU4MUAnBWXsZMCcFbrLVe"; # One-time key
      port = 8090;
    };
  };
}