summaryrefslogtreecommitdiff
path: root/config/services/web/default.nix
blob: 091fca43adc720c437520a27d62bf47ee9ccd62f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ ... }:

{
  imports = [ ./money ./quentin ./searx ];

  security.acme = {
    acceptTerms = true;
    email = "quentin@aristote.fr";
  };

  services.nginx = {
    enable = true;
    # return 444 when trying to connect directly through the IP address
    virtualHosts."_" = {
      default = true;
      extraConfig = ''
        return 444;
      '';
    };
    appendHttpConfig = ''
      types_hash_max_size 2048;
      access_log /dev/null;
    '';
  };
}