This commit is contained in:
= 2025-11-09 23:28:16 +00:00
parent 68704bc88e
commit b9c6c1da6a
25 changed files with 87 additions and 6 deletions

View file

@ -0,0 +1,10 @@
{
imports = [
../shared
# TOR bridge
./tor.nix
# Status page in diff. data center for redundancy/resilience
./uptime-kuma.nix
]
}

View file

@ -0,0 +1,16 @@
{
services.tor = {
enable = true;
relay = {
enable = true;
role = "bridge";
};
settings = {
Nickname = "Distrust Mini";
ContactInfo = "root@distrust.network";
ORPort = 8080;
};
};
networking.firewall.allowedTCPPorts = [8080];
}

View file

@ -0,0 +1,28 @@
let
kumaPort = 3001;
in
{
services.uptime-kuma = {
enable = true;
settings = {
PORT = kumaPort;
};
};
distrust.services."uptime-kuma" = {
url = "http://uptime.distrust.network";
onion = {
url = "http://uxp5y2l7g3jv2x7f4j5zv3j5x7z5z7z5z5z5z5z5z5z5z5z5z5z5z5z5z5.onion";
secretKey = null;
};
virtualHostConfig = ''
reverse_proxy localhost:${toString kumaPort}
'';
backup = {
enable = true;
paths = [
"/var/lib/uptime-kuma"
];
};
};
}

View file

@ -1,7 +1,8 @@
{
imports = [
../shared
# Core System
./borg.nix
./caddy.nix
# Non-stateful services

View file

@ -0,0 +1,5 @@
{
imports = [
./borg.nix
];
}