summaryrefslogtreecommitdiffstats
path: root/tv/2configs/nginx/default.nix
blob: 0e6c2df0e1e46951ec537f7e2e835305f173e4b1 (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
{ config, lib, ... }:

with import <stockholm/lib>;

{
  services.nginx = {
    virtualHosts._http = {
      default = true;
      extraConfig = ''
        return 404;
      '';
    };

    virtualHosts.default = {
      locations."= /etc/os-release".extraConfig = ''
        default_type text/plain;
        alias /etc/os-release;
      '';
    };
  };
  tv.iptables = {
    input-retiolum-accept-tcp = singleton "http";
  };
}