Uptime kuma
This commit is contained in:
parent
7999794410
commit
7ba6caf5a1
4 changed files with 21 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
|||
./nginx
|
||||
./owncast
|
||||
./transmission
|
||||
./uptime-kuma
|
||||
./vaultwarden
|
||||
];
|
||||
}
|
||||
|
|
8
modules/system/services/server/uptime-kuma/default.nix
Normal file
8
modules/system/services/server/uptime-kuma/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
imports = [ ./nginx ];
|
||||
|
||||
services.uptime-kuma.settings.PORT = "4005";
|
||||
|
||||
environment.persistence."/persist".directories = lib.mkIf config.services.uptime-kuma.enable [ "/var/lib/private/uptime-kuma" ];
|
||||
}
|
11
modules/system/services/server/uptime-kuma/nginx/default.nix
Normal file
11
modules/system/services/server/uptime-kuma/nginx/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
services.nginx.virtualHosts."uptime.${config.vars.primeDomain}" = lib.mkIf config.services.uptime-kuma.enable {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:4005";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue