summaryrefslogtreecommitdiff
path: root/config/services/web/default.nix
blob: e0bdae8d4062c7ffdc5e5ab8940584892b5dd3b7 (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
{ ... }:

{
  import = [
    ./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
      '';
    };
  };
}