From 85155c977d0dc51318509a8706121b7200e4add9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vili=20Sinerv=C3=A4?= Date: Thu, 9 Jan 2025 21:48:09 +0200 Subject: [PATCH] Add nginx minimal conf --- machine-confs/honeypot.nix | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 machine-confs/honeypot.nix diff --git a/machine-confs/honeypot.nix b/machine-confs/honeypot.nix new file mode 100644 index 0000000..822a742 --- /dev/null +++ b/machine-confs/honeypot.nix @@ -0,0 +1,31 @@ +{ ... }: +{ + networking.hostName = "honeypot"; + + imports = [ + ../base.nix + ]; + + networking.firewall.allowedTCPPorts = [ + 80 + ]; + + services = { + nginx = { + enable = true; + recommendedGzipSettings = true; + + virtualHosts.localhost = { + locations."/" = { + return = "200 'It works'"; + extraConfig = '' + default_type text/html; + ''; + }; + }; + }; + }; + + # HARDWARE SPECIFIC + services.qemuGuest.enable = true; +}