mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
chore(ci): flake update
gatus module upstreamed
This commit is contained in:
parent
d04959b11a
commit
07228a1a1f
3 changed files with 262 additions and 206 deletions
|
|
@ -174,16 +174,18 @@ in {
|
|||
};
|
||||
services.gatus = {
|
||||
enable = true;
|
||||
user = mkDefault "gatus";
|
||||
environmentFile = config.sops.secrets.gatus_environment_file.path;
|
||||
|
||||
# Endpoint configuration
|
||||
endpoints = listToAttrs (concatMap mapSystem statusSystems);
|
||||
|
||||
settings = {
|
||||
# Environment variables are pulled in to be usable within the config.
|
||||
alerting.discord = {
|
||||
webhook-url = "\${DISCORD_WEBHOOK_URL}";
|
||||
};
|
||||
|
||||
# Endpoint configuration
|
||||
endpoints = listToAttrs (concatMap mapSystem statusSystems);
|
||||
|
||||
# The actual status page configuration
|
||||
ui = {
|
||||
title = "Gensokyo Zone Status";
|
||||
|
|
@ -209,6 +211,15 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
users = mkIf (cfg.enable && cfg.user == "gatus") {
|
||||
groups.gatus = {};
|
||||
users.gatus = {
|
||||
group = "gatus";
|
||||
description = "gatus service user";
|
||||
isSystemUser = true;
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.interfaces.lan.allowedTCPPorts = mkIf cfg.enable [
|
||||
cfg.settings.web.port
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue