feat(rescue01): deploy uptime-kuma
All checks were successful
build configuration / build_vault01 (push) Successful in 1m10s
build configuration / build_web02 (push) Successful in 1m11s
build configuration / build_storage01 (push) Successful in 1m13s
build configuration / build_compute01 (push) Successful in 1m22s
lint / check (push) Successful in 23s
build configuration / build_web01 (push) Successful in 1m38s
build configuration / build_rescue01 (push) Successful in 1m41s
All checks were successful
build configuration / build_vault01 (push) Successful in 1m10s
build configuration / build_web02 (push) Successful in 1m11s
build configuration / build_storage01 (push) Successful in 1m13s
build configuration / build_compute01 (push) Successful in 1m22s
lint / check (push) Successful in 23s
build configuration / build_web01 (push) Successful in 1m38s
build configuration / build_rescue01 (push) Successful in 1m41s
This commit is contained in:
parent
747d8c08cb
commit
fdd4f4b443
3 changed files with 29 additions and 0 deletions
|
@ -8,6 +8,7 @@ lib.extra.mkConfig {
|
|||
|
||||
enabledServices = [
|
||||
# List of services to enable
|
||||
"uptime-kuma"
|
||||
];
|
||||
|
||||
extraConfig = {
|
||||
|
|
26
machines/rescue01/uptime-kuma.nix
Normal file
26
machines/rescue01/uptime-kuma.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
let
|
||||
host = "status.dgnum.eu";
|
||||
|
||||
port = 3001;
|
||||
in
|
||||
{
|
||||
services.uptime-kuma.enable = true;
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
|
||||
virtualHosts.${host} = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:${builtins.toString port}";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
80
|
||||
443
|
||||
];
|
||||
}
|
|
@ -44,6 +44,8 @@ let
|
|||
"telegraf" # Telegraf
|
||||
];
|
||||
|
||||
rescue01 = [ "status" ];
|
||||
|
||||
storage01 = [
|
||||
"cachix" # Attic
|
||||
"git" # Forgejo
|
||||
|
|
Loading…
Reference in a new issue