summaryrefslogtreecommitdiffstats
path: root/tv/2configs/nginx/default.nix
blob: 6844df99bdfe137ee04131d5470bf6ea59074fe2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
with import ./lib;
{ config, ... }: {
  services.nginx = {
    enableReload = true;

    recommendedGzipSettings = true;
    recommendedOptimisation = true;
    recommendedTlsSettings = true;

    virtualHosts.${toJSON ""} = {
      default = true;
      extraConfig = ''
        error_page 400 =444 /;
        return 444;
      '';
      rejectSSL = true;
    };
  };
  tv.iptables = {
    input-retiolum-accept-tcp = singleton "http";
  };
}