summaryrefslogtreecommitdiff
path: root/os/srv/uptime-kuma.nix
diff options
context:
space:
mode:
Diffstat (limited to 'os/srv/uptime-kuma.nix')
-rw-r--r--os/srv/uptime-kuma.nix41
1 files changed, 0 insertions, 41 deletions
diff --git a/os/srv/uptime-kuma.nix b/os/srv/uptime-kuma.nix
deleted file mode 100644
index 7bf8dd0..0000000
--- a/os/srv/uptime-kuma.nix
+++ /dev/null
@@ -1,41 +0,0 @@
-{
- config,
- lib,
- masterDomain,
- securityTemplates,
- ...
-}:
-let
- cfg = config.os.srv.uptime-kuma;
-in
-{
- options.os.srv.uptime-kuma = {
- enable = lib.mkEnableOption "enables uptime-kuma";
- proxyConfig = lib.mkOption {
- type = lib.types.attrs;
- default = { };
- };
- };
- config = lib.mkIf cfg.enable {
- services.uptime-kuma = {
- enable = true;
- appriseSupport = true;
- settings = {
- HOST = "127.0.0.1";
- UPTIME_KUMA_DB_TYPE = "sqlite";
- };
- };
-
- os.srv.uptime-kuma.proxyConfig = {
- "uptime-kuma.${masterDomain}" = {
- enableACME = true;
- forceSSL = true;
-
- locations."/" = {
- proxyPass = "http://${config.os.core.network.ips.vm2-gateway}:3001";
- extraConfig = securityTemplates.restrictToInternal;
- };
- };
- };
- };
-}