2022-06-06 12:37:11 +02:00
|
|
|
{ ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
users = {
|
|
|
|
users.http = {
|
|
|
|
isSystemUser = true;
|
|
|
|
group = "http";
|
|
|
|
};
|
|
|
|
|
|
|
|
groups.http = { };
|
|
|
|
};
|
|
|
|
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
|
|
|
|
user = "http";
|
|
|
|
group = "http";
|
|
|
|
|
|
|
|
appendHttpConfig = ''
|
|
|
|
charset utf-8;
|
|
|
|
'';
|
|
|
|
};
|
2023-12-31 00:19:22 +01:00
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
2022-06-06 12:37:11 +02:00
|
|
|
};
|
|
|
|
}
|