prep for distrust-mini
This commit is contained in:
parent
813a92ece0
commit
b2c36ea08b
2 changed files with 16 additions and 21 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 ./helpers/services.nix agenix.nixosModules.default {networking.hostName = "distrust-mini";}];
|
modules = [./system/distrust-mini ./services/distrust-mini agenix.nixosModules.default {networking.hostName = "distrust-mini";}];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -3,27 +3,22 @@
|
||||||
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.uptime-kuma = {
|
services = {
|
||||||
|
uptime-kuma = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
PORT = toString kumaPort;
|
PORT = toString kumaPort;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
caddy = {
|
||||||
distrust.services."uptime-kuma" = {
|
enable = true;
|
||||||
url = "https://status.distrust.network";
|
virtualHosts."https://status.distrust.network".extraConfig = ''
|
||||||
onion = {
|
|
||||||
url = "http://dstrst6d56jb7y7bmd77fcq73x43e6euphf74qzjvvn43j67ugydd2id.onion";
|
|
||||||
secretKey = config.age.secrets."hidden_service/uptime-kuma".path;
|
|
||||||
};
|
|
||||||
virtualHostConfig = ''
|
|
||||||
reverse_proxy localhost:${toString kumaPort}
|
reverse_proxy localhost:${toString kumaPort}
|
||||||
'';
|
'';
|
||||||
backup = {
|
};
|
||||||
enable = true;
|
tor.relay.onionServices."uptime-kuma" = {
|
||||||
paths = [
|
map = [80];
|
||||||
"/var/lib/uptime-kuma"
|
secretKey = config.age.secrets."hidden_service/uptime-kuma".path;
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue