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

with config.krebs.lib;

{
  krebs.nginx = {
    extraConfig = ''
      events {
      }
    '';
    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-tcp = singleton "http";
  };
}