about summary refs log blame commit diff
path: root/users/sterni/machines/edwin/http/nginx.nix
blob: 7c99cdd150e08b9e1eb24ab41de8688bdbbb3235 (plain) (tree)



























                                      
{ ... }:

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