29 lines
635 B
Nix
29 lines
635 B
Nix
|
{ config, lib, pkgs, ... }: {
|
||
|
networking.firewall.allowedTCPPorts = [
|
||
|
80
|
||
|
443
|
||
|
];
|
||
|
|
||
|
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 = "ssh";
|
||
|
# port = 2282;
|
||
|
# unlisted = true;
|
||
|
# server = "/usr/bin/env"; # Placeholder.
|
||
|
# extraConfig = "redirect = 10.100.0.2 22";
|
||
|
# }
|
||
|
];
|
||
|
};
|
||
|
}
|