split!
This commit is contained in:
parent
68704bc88e
commit
b9c6c1da6a
25 changed files with 87 additions and 6 deletions
10
services/distrust-mini/default.nix
Normal file
10
services/distrust-mini/default.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
imports = [
|
||||
../shared
|
||||
|
||||
# TOR bridge
|
||||
./tor.nix
|
||||
# Status page in diff. data center for redundancy/resilience
|
||||
./uptime-kuma.nix
|
||||
]
|
||||
}
|
||||
16
services/distrust-mini/tor.nix
Normal file
16
services/distrust-mini/tor.nix
Normal 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];
|
||||
}
|
||||
28
services/distrust-mini/uptime-kuma.nix
Normal file
28
services/distrust-mini/uptime-kuma.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,7 +1,8 @@
|
|||
{
|
||||
imports = [
|
||||
../shared
|
||||
|
||||
# Core System
|
||||
./borg.nix
|
||||
./caddy.nix
|
||||
|
||||
# Non-stateful services
|
||||
5
services/shared/default.nix
Normal file
5
services/shared/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./borg.nix
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue