summaryrefslogtreecommitdiffstats
path: root/tv/2configs/nginx/default.nix
blob: 1fac65a318e8ed467b6275f04eba388a07a5a93a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ config, lib, ... }:

with config.krebs.lib;

{
  krebs.nginx = {
    servers.default.locations = [
      (nameValuePair "= /etc/os-release" ''
        default_type text/plain;
        alias /etc/os-release;
      '')
    ];
  };
  tv.iptables = optionalAttrs config.krebs.nginx.enable {
    input-retiolum-accept-new-tcp = singleton "http";
  };
}