2016-03-05 11:57:46 +00:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
2016-10-20 18:54:38 +00:00
|
|
|
with import <stockholm/lib>;
|
2016-03-05 11:57:46 +00:00
|
|
|
|
|
|
|
{
|
2016-12-23 08:46:32 +00:00
|
|
|
services.nginx = {
|
2016-12-23 10:09:36 +00:00
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
|
2016-12-23 09:46:26 +00:00
|
|
|
virtualHosts._http = {
|
|
|
|
default = true;
|
|
|
|
extraConfig = ''
|
|
|
|
return 404;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2016-12-23 08:46:32 +00:00
|
|
|
virtualHosts.default = {
|
|
|
|
locations."= /etc/os-release".extraConfig = ''
|
2016-03-05 11:57:46 +00:00
|
|
|
default_type text/plain;
|
|
|
|
alias /etc/os-release;
|
2016-12-23 08:46:32 +00:00
|
|
|
'';
|
|
|
|
};
|
2016-03-05 11:57:46 +00:00
|
|
|
};
|
2016-12-23 08:46:32 +00:00
|
|
|
tv.iptables = {
|
2016-06-29 22:52:35 +00:00
|
|
|
input-retiolum-accept-tcp = singleton "http";
|
2016-03-05 11:57:46 +00:00
|
|
|
};
|
|
|
|
}
|