nix/nixos/hosts/osaka-vultr-01/xinetd.nix

29 lines
634 B
Nix
Raw Normal View History

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-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";
}
# {
# name = "ssh";
# port = 2282;
# unlisted = true;
# server = "/usr/bin/env"; # Placeholder.
# extraConfig = "redirect = 10.100.0.2 22";
# }
];
};
}