From f849d99dcc87a44e7f5ab45a7957aaad1032df5c Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Fri, 25 Oct 2024 14:59:46 +0200 Subject: [PATCH] nixos-vm: First proxy work --- hosts/nixos-test/configuration.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/nixos-test/configuration.nix b/hosts/nixos-test/configuration.nix index 0cf4698..48cf9b1 100644 --- a/hosts/nixos-test/configuration.nix +++ b/hosts/nixos-test/configuration.nix @@ -31,7 +31,10 @@ # following configuration is added only when building VM with build-vm virtualisation = { memorySize = 8192; # Use 8192MiB memory. - cores = 8; + cores = 8; + forwardPorts = [ + { from = "host"; host.port = 8888; guest.port = 80; } + ]; }; }; @@ -63,4 +66,6 @@ }; }; }; + + networking.firewall.allowedTCPPorts = [ 80 ]; # Opens port 80 for HTTP traffic. }