stockholm/tv/2configs/nginx/default.nix
2016-10-20 20:54:38 +02:00

18 lines
352 B
Nix

{ config, lib, ... }:
with import <stockholm/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-tcp = singleton "http";
};
}