From 97530308050315cf124bc7a8a719d275b0cec6e3 Mon Sep 17 00:00:00 2001 From: notohh Date: Tue, 19 Sep 2023 16:02:44 -0400 Subject: [PATCH] sora: init gotify --- hosts/sora/services/default.nix | 1 + hosts/sora/services/gotify.nix | 7 +++++++ hosts/sora/services/traefik.nix | 8 ++++++++ 3 files changed, 16 insertions(+) create mode 100644 hosts/sora/services/gotify.nix diff --git a/hosts/sora/services/default.nix b/hosts/sora/services/default.nix index 9eeb66f..11fff5b 100644 --- a/hosts/sora/services/default.nix +++ b/hosts/sora/services/default.nix @@ -2,5 +2,6 @@ imports = [ ./traefik.nix ./uptimekuma.nix + ./gotify.nix ]; } diff --git a/hosts/sora/services/gotify.nix b/hosts/sora/services/gotify.nix new file mode 100644 index 0000000..9f8eee1 --- /dev/null +++ b/hosts/sora/services/gotify.nix @@ -0,0 +1,7 @@ +_: { + networking.firewall.allowedTCPPorts = [3000]; + services.gotify = { + enable = true; + port = 3000; + }; +} diff --git a/hosts/sora/services/traefik.nix b/hosts/sora/services/traefik.nix index c4a6d4c..606dd5e 100644 --- a/hosts/sora/services/traefik.nix +++ b/hosts/sora/services/traefik.nix @@ -32,6 +32,13 @@ tls.domains = [{main = "*.notohh.dev";}]; tls.certresolver = "production"; }; + gotify = { + rule = "Host(`gotify.notohh.dev`)"; + entrypoints = ["websecure"]; + service = "gotify"; + tls.domains = [{main = "*.notohh.dev";}]; + tls.certresolver = "production"; + }; neko = { rule = "Host(`neko.notohh.dev`)"; entrypoints = ["websecure"]; @@ -42,6 +49,7 @@ }; services = { uptime-kuma.loadBalancer.servers = [{url = "http://100.87.54.48:4000";}]; + gotify.loadBalancer.servers = [{url = "http://100.87.54.48:3000";}]; neko.loadBalancer.servers = [{url = "http://100.110.140.130:8080";}]; }; };