spec(web): enable uptime-kuma
This commit is contained in:
parent
2e4a4047ed
commit
3b525684f5
2 changed files with 20 additions and 0 deletions
|
@ -25,6 +25,15 @@
|
||||||
globalRedirect = "514fpv.one";
|
globalRedirect = "514fpv.one";
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"uptime.514fpv.one" = {
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:4000";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
11
spec/web/uptime.nix
Normal file
11
spec/web/uptime.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
services.uptime-kuma = {
|
||||||
|
enable = true;
|
||||||
|
settings.HOST = "127.0.0.1";
|
||||||
|
settings.PORT = "4000";
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.persistence."/nix/persist/fhs".directories = [
|
||||||
|
"/var/lib/private/uptime-kuma"
|
||||||
|
];
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue