rename from profiles to users
This commit is contained in:
parent
d70ff2ea3f
commit
1adc687ff9
13 changed files with 42 additions and 10 deletions
32
modules/services/httpd.nix
Normal file
32
modules/services/httpd.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{...}: {
|
||||
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>
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in a new issue