feat: add services

main
flop 5 days ago
parent dd6496f477
commit bec314b3d0
  1. 25
      flake.nix

@ -48,6 +48,9 @@
# gatus_health health-check path monitored by gatus (e.g. "/health"). # gatus_health health-check path monitored by gatus (e.g. "/health").
# Leave empty/unset to hide this host from the status page. # Leave empty/unset to hide this host from the status page.
vhosts = { vhosts = {
"${domain}" = {
description = "Website";
};
"auth.${domain}" = { "auth.${domain}" = {
description = "Keycloak"; description = "Keycloak";
ports = {"http" = 8080; }; ports = {"http" = 8080; };
@ -60,7 +63,7 @@
}; };
"pad.${domain}" = { "pad.${domain}" = {
# TODO: not implemented (hidden from gatus until gatus_health is set) # TODO: not implemented (hidden from gatus until gatus_health is set)
description = "HedgeDoc"; description = "HedgeDoc (Pad)";
ports = {"http" = 3001; "httpws" = 3001; }; ports = {"http" = 3001; "httpws" = 3001; };
websockets = true; websockets = true;
}; };
@ -69,6 +72,15 @@
ports = { "http" = 3000; "ssh" = 22; }; ports = { "http" = 3000; "ssh" = 22; };
gatus_health = "/"; gatus_health = "/";
}; };
"tickets.${domain}" = {
description = "Pretix";
};
"cfp.${domain}" = {
description = "Pretalx";
};
"matrix.${domain}" = {
description = "Matrix";
};
}; };
baseArgs = { baseArgs = {
@ -89,10 +101,17 @@
] ++ sharedModules; ] ++ sharedModules;
}; };
status.domain.com = nixpkgs.lib.nixosSystem { deploy.domain.com = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = baseArgs // { specialArgs = baseArgs // {
domains = [ "pad.${domain}" "git.${domain}" ]; domains = [
"${domain}"
"pad.${domain}"
"git.${domain}"
"tickets.${domain}"
"cfp.${domain}"
"matrix.${domain}"
];
}; };
modules = [ modules = [
./machines/status.domain.com/configuration.nix ./machines/status.domain.com/configuration.nix

Loading…
Cancel
Save