Compare commits
2 commits
a34936ab78
...
7d8085d60f
Author | SHA1 | Date | |
---|---|---|---|
7d8085d60f | |||
9753030805 |
5 changed files with 32 additions and 0 deletions
|
@ -2,5 +2,6 @@
|
||||||
imports = [
|
imports = [
|
||||||
./traefik.nix
|
./traefik.nix
|
||||||
./uptimekuma.nix
|
./uptimekuma.nix
|
||||||
|
./gotify.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
7
hosts/sora/services/gotify.nix
Normal file
7
hosts/sora/services/gotify.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
_: {
|
||||||
|
networking.firewall.allowedTCPPorts = [3000];
|
||||||
|
services.gotify = {
|
||||||
|
enable = true;
|
||||||
|
port = 3000;
|
||||||
|
};
|
||||||
|
}
|
|
@ -32,6 +32,13 @@
|
||||||
tls.domains = [{main = "*.notohh.dev";}];
|
tls.domains = [{main = "*.notohh.dev";}];
|
||||||
tls.certresolver = "production";
|
tls.certresolver = "production";
|
||||||
};
|
};
|
||||||
|
gotify = {
|
||||||
|
rule = "Host(`gotify.notohh.dev`)";
|
||||||
|
entrypoints = ["websecure"];
|
||||||
|
service = "gotify";
|
||||||
|
tls.domains = [{main = "*.notohh.dev";}];
|
||||||
|
tls.certresolver = "production";
|
||||||
|
};
|
||||||
neko = {
|
neko = {
|
||||||
rule = "Host(`neko.notohh.dev`)";
|
rule = "Host(`neko.notohh.dev`)";
|
||||||
entrypoints = ["websecure"];
|
entrypoints = ["websecure"];
|
||||||
|
@ -42,6 +49,7 @@
|
||||||
};
|
};
|
||||||
services = {
|
services = {
|
||||||
uptime-kuma.loadBalancer.servers = [{url = "http://100.87.54.48:4000";}];
|
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";}];
|
neko.loadBalancer.servers = [{url = "http://100.110.140.130:8080";}];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{...}: {
|
{...}: {
|
||||||
imports = [
|
imports = [
|
||||||
./restic.nix
|
./restic.nix
|
||||||
|
./gotify-desktop.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
15
hosts/tsuki/services/gotify-desktop.nix
Normal file
15
hosts/tsuki/services/gotify-desktop.nix
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
systemd.services.gotify-desktop = {
|
||||||
|
enable = true;
|
||||||
|
wantedBy = [
|
||||||
|
"multi-user.target"
|
||||||
|
];
|
||||||
|
description = "Small Gotify daemon to send messages as desktop notifications";
|
||||||
|
serviceConfig = {
|
||||||
|
User = "notoh";
|
||||||
|
ExecStart = "${pkgs.gotify-desktop}/bin/gotify-desktop";
|
||||||
|
Restart = "always";
|
||||||
|
RestartSec = 30;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue