feat: rework network config

This commit is contained in:
Katharina Heidenreich 2026-03-22 17:38:59 +01:00
parent 43d47ec3b6
commit 1ddbd3b8b6
2 changed files with 82 additions and 0 deletions

28
config/endpoints.nix Normal file
View file

@ -0,0 +1,28 @@
let
lib = import <nixpkgs/lib>;
net = import ./network.nix;
in
rec {
[
{
type = "web";
domain = "${net.devices.remote_proxy.domain}";
endpoint = "/";
force_ssl = true;
port = 443;
content = web.home;
}
{
type = "proxy";
domain = "torrent.${net.local_domain}";
endpoint = "/";
forceSsl = false;
port = 80;
content = {
type = "service";
url = "localhost";
port = services.torrent.port;
};
}
]
}