pi/config/endpoints.nix
2026-03-22 17:38:59 +01:00

28 lines
No EOL
640 B
Nix

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;
};
}
]
}