Add nginx minimal conf

This commit is contained in:
Vili Sinervä 2025-01-09 21:48:09 +02:00
parent 6ce0fb2ade
commit 85155c977d
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996

View file

@ -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 '<html><body>It works</body></html>'";
extraConfig = ''
default_type text/html;
'';
};
};
};
};
# HARDWARE SPECIFIC
services.qemuGuest.enable = true;
}