feat(services): add nginx with test http response

This commit is contained in:
Mohammad Rafiq 2025-04-14 14:06:24 +08:00
parent dee55c8a5a
commit 94e6161c6a
No known key found for this signature in database
2 changed files with 22 additions and 0 deletions

View file

@ -2,5 +2,6 @@
imports = [
./services/glance.nix
./services/wakapi.nix
./services/nginx.nix
];
}

View file

@ -0,0 +1,21 @@
{
services.nginx = {
enable = true;
defaultListen = [
{
addr = "0.0.0.0";
port = 18080;
}
];
virtualHosts = {
localhost = {
locations."/" = {
return = "200 '<html><body>It works</body></html>'";
extraConfig = ''
default_type text/html;
'';
};
};
};
};
}