pantheon/configs/services/nginx.nix
2025-04-14 14:06:24 +08:00

21 lines
376 B
Nix

{
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;
'';
};
};
};
};
}