This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
AsaJS/modules/services/httpd.nix
2026-04-18 00:27:43 +07:00

32 lines
672 B
Nix

{...}: {
services.httpd = {
enable = true;
adminAddr = "vantrong2007vn@gmail.com";
user = "static";
group = "public";
virtualHosts = {
localhost = {
documentRoot = "/host/PUBLIC";
listen = [
{
ip = "0.0.0.0";
port = 37284;
}
];
extraConfig = ''
<Directory "/host/PUBLIC">
Options -Indexes +FollowSymLinks
AllowOverride None
Require all granted
<LimitExcept GET HEAD OPTIONS>
Require all denied
</LimitExcept>
</Directory>
'';
};
};
};
}