mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
chore: adds uptime-kuma
This commit is contained in:
parent
bffc69e246
commit
414459ca83
1 changed files with 25 additions and 0 deletions
25
modules/services/uptime-kuma.nix
Normal file
25
modules/services/uptime-kuma.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
{ config, ... }:
|
||||||
|
{
|
||||||
|
services = {
|
||||||
|
uptime-kuma = {
|
||||||
|
enable = true;
|
||||||
|
settings.PORT = 4800;
|
||||||
|
};
|
||||||
|
anubis.instances.uptime-kuma = {
|
||||||
|
settings = {
|
||||||
|
TARGET = "http://localhost:4800";
|
||||||
|
BIND = ":4801";
|
||||||
|
BIND_NETWORK = "tcp";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
nginx.virtualHosts."uptime.liv.town" = {
|
||||||
|
forceSSL = true;
|
||||||
|
sslCertificate = "/var/lib/acme/liv.town/cert.pem";
|
||||||
|
sslCertificateKey = "/var/lib/acme/liv.town/key.pem";
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost${toString config.services.anubis.instances.uptime-kuma.settings.BIND}";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue