stockholm/tv/2configs/nginx/default.nix
2022-08-20 22:32:17 +02:00

26 lines
461 B
Nix

{ config, lib, ... }:
with import <stockholm/lib>;
{
services.nginx = {
enableReload = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedTlsSettings = true;
virtualHosts.${toJSON ""} = {
default = true;
extraConfig = ''
error_page 400 =444 /;
return 444;
'';
rejectSSL = true;
};
};
tv.iptables = {
input-retiolum-accept-tcp = singleton "http";
};
}