forked from DGNum/infrastructure
feat(rescue01): deploy uptime-kuma
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 = [
|
enabledServices = [
|
||||||
# List of services to enable
|
# List of services to enable
|
||||||
|
"uptime-kuma"
|
||||||
];
|
];
|
||||||
|
|
||||||
extraConfig = {
|
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
|
"telegraf" # Telegraf
|
||||||
];
|
];
|
||||||
|
|
||||||
|
rescue01 = [ "status" ];
|
||||||
|
|
||||||
storage01 = [
|
storage01 = [
|
||||||
"cachix" # Attic
|
"cachix" # Attic
|
||||||
"git" # Forgejo
|
"git" # Forgejo
|
||||||
|
|
Loading…
Reference in a new issue