iFargle
284311a25b
All checks were successful
update-flake-lock / update-flake-lock (push) Successful in 1m52s
37 lines
No EOL
833 B
Nix
37 lines
No EOL
833 B
Nix
{ config, lib, pkgs, ... }: {
|
|
networking.firewall.allowedTCPPorts = [
|
|
80
|
|
443
|
|
8080
|
|
];
|
|
|
|
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";
|
|
}
|
|
{
|
|
name = "piaware";
|
|
port = 8080;
|
|
unlisted = true;
|
|
server = "/usr/bin/env"; # Placeholder.
|
|
extraConfig = "redirect = piaware-rpi4 8080";
|
|
}
|
|
# {
|
|
# name = "ssh";
|
|
# port = 2282;
|
|
# unlisted = true;
|
|
# server = "/usr/bin/env"; # Placeholder.
|
|
# extraConfig = "redirect = 10.100.0.2 22";
|
|
# }
|
|
];
|
|
};
|
|
} |