parent
b2c36ea08b
commit
fe481df5d2
2 changed files with 20 additions and 15 deletions
|
|
@ -29,7 +29,7 @@
|
||||||
};
|
};
|
||||||
distrust-mini = lib.nixosSystem {
|
distrust-mini = lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [./system/distrust-mini ./services/distrust-mini agenix.nixosModules.default {networking.hostName = "distrust-mini";}];
|
modules = [./system/distrust-mini ./services/distrust-mini ./helpers/services.nix agenix.nixosModules.default {networking.hostName = "distrust-mini";}];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -3,22 +3,27 @@
|
||||||
in {
|
in {
|
||||||
age.secrets."hidden_service/uptime-kuma".file = ../../secrets/hidden_service/uptime-kuma;
|
age.secrets."hidden_service/uptime-kuma".file = ../../secrets/hidden_service/uptime-kuma;
|
||||||
|
|
||||||
services = {
|
services.uptime-kuma = {
|
||||||
uptime-kuma = {
|
enable = true;
|
||||||
enable = true;
|
settings = {
|
||||||
settings = {
|
PORT = toString kumaPort;
|
||||||
PORT = toString kumaPort;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
caddy = {
|
};
|
||||||
enable = true;
|
|
||||||
virtualHosts."https://status.distrust.network".extraConfig = ''
|
distrust.services."uptime-kuma" = {
|
||||||
reverse_proxy localhost:${toString kumaPort}
|
url = "https://status.distrust.network";
|
||||||
'';
|
onion = {
|
||||||
};
|
url = "http://dstrst6d56jb7y7bmd77fcq73x43e6euphf74qzjvvn43j67ugydd2id.onion";
|
||||||
tor.relay.onionServices."uptime-kuma" = {
|
|
||||||
map = [80];
|
|
||||||
secretKey = config.age.secrets."hidden_service/uptime-kuma".path;
|
secretKey = config.age.secrets."hidden_service/uptime-kuma".path;
|
||||||
};
|
};
|
||||||
|
virtualHostConfig = ''
|
||||||
|
reverse_proxy localhost:${toString kumaPort}
|
||||||
|
'';
|
||||||
|
backup = {
|
||||||
|
enable = true;
|
||||||
|
paths = [
|
||||||
|
"/var/lib/uptime-kuma"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue