nixos_config/nixos/modules/services/nginx.nix

18 lines
333 B
Nix
Raw Permalink Normal View History

2026-05-29 18:13:23 +02:00
{ ... }:
{
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."_" = {
default = true;
rejectSSL = true;
extraConfig = ''
return 421;
'';
};
};
}