2023-10-08 10:20:24 +02:00
|
|
|
{ config, lib, pkgs, ... }: {
|
2023-10-08 10:34:07 +02:00
|
|
|
networking.firewall.allowedTCPPorts = [
|
2023-10-08 10:20:24 +02:00
|
|
|
80
|
|
|
|
443
|
2023-10-09 01:28:32 +02:00
|
|
|
8080
|
2023-10-08 10:20:24 +02:00
|
|
|
];
|
2023-10-08 10:25:18 +02:00
|
|
|
|
2023-10-08 10:20:24 +02:00
|
|
|
services.xinetd = {
|
|
|
|
enable = true;
|
|
|
|
services = [
|
|
|
|
{
|
|
|
|
name = "http";
|
|
|
|
server = "/usr/bin/env"; # Placeholder.
|
|
|
|
extraConfig = "redirect = 10.100.0.2 80";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "https";
|
|
|
|
server = "/usr/bin/env"; # Placeholder.
|
|
|
|
extraConfig = "redirect = 10.100.0.2 443";
|
|
|
|
}
|
2023-10-09 01:26:16 +02:00
|
|
|
{
|
|
|
|
name = "piaware-rpi4";
|
|
|
|
port = 8080;
|
|
|
|
unlisted = true;
|
|
|
|
server = "/usr/bin/env"; # Placeholder.
|
|
|
|
extraConfig = "redirect = piaware-rpi4 8080";
|
|
|
|
}
|
2023-10-08 10:20:24 +02:00
|
|
|
# {
|
|
|
|
# name = "ssh";
|
|
|
|
# port = 2282;
|
|
|
|
# unlisted = true;
|
|
|
|
# server = "/usr/bin/env"; # Placeholder.
|
|
|
|
# extraConfig = "redirect = 10.100.0.2 22";
|
|
|
|
# }
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|