forked from emily/nixfiles
Add uptime-kuma to services
This commit is contained in:
parent
c4f3ccc4b5
commit
88b7a63bb0
1 changed files with 18 additions and 0 deletions
18
config/services/uptime-kuma.nix
Normal file
18
config/services/uptime-kuma.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{ ... }:{
|
||||||
|
services.uptime-kuma = {
|
||||||
|
enable = true;
|
||||||
|
appriseSupport = true;
|
||||||
|
settings = {
|
||||||
|
HOST = "::1";
|
||||||
|
PORT = "3001";
|
||||||
|
NODE_EXTRA_CA_CERTS = "/etc/ssl/certs/ca-certificates.crt";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
kyouma.nginx.virtualHosts."uptime.kyouma.net" = {
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://[::1]:3001";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
security.acme.certs."uptime.kyouma.net" = {};
|
||||||
|
}
|
Loading…
Reference in a new issue