tvl-depot/users/sterni/machines/ingeborg/http/nginx.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
489 B
Nix
Raw Normal View History

{ ... }:
{
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;
'';
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
};
}