stockholm/tv/2configs/nginx/default.nix

22 lines
398 B
Nix
Raw Normal View History

2016-03-05 11:57:46 +00:00
{ config, lib, ... }:
with config.krebs.lib;
{
krebs.nginx = {
2016-07-03 17:38:06 +00:00
extraConfig = ''
events {
}
'';
2016-03-05 11:57:46 +00:00
servers.default.locations = [
(nameValuePair "= /etc/os-release" ''
default_type text/plain;
alias /etc/os-release;
'')
];
};
tv.iptables = optionalAttrs config.krebs.nginx.enable {
2016-06-29 22:52:35 +00:00
input-retiolum-accept-tcp = singleton "http";
2016-03-05 11:57:46 +00:00
};
}