From f6e979f5f11f7bb317dda01b67232db300b1d675 Mon Sep 17 00:00:00 2001 From: iFargle Date: Sun, 8 Oct 2023 16:45:01 +0900 Subject: [PATCH] Test --- nixos/hosts/osaka-vultr-01/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nixos/hosts/osaka-vultr-01/default.nix b/nixos/hosts/osaka-vultr-01/default.nix index 6380dbbe..834afcc1 100644 --- a/nixos/hosts/osaka-vultr-01/default.nix +++ b/nixos/hosts/osaka-vultr-01/default.nix @@ -73,6 +73,18 @@ services.xinetd = { enable = true; + services = [ + { + name = "http"; + server = "/usr/bin/env"; + extraConfig = "redirect = 10.100.0.2 80"; + } + { + name = "https"; + server = "/usr/bin/env"; + extraConfig = "redirect = 10.100.0.2 443"; + } + ]; }; networking.nat = {