puter/hosts/abacus/nginx.nix
2024-10-27 22:25:14 +01:00

23 lines
445 B
Nix

{config, ...}: {
services.nginx = {
enable = true;
# recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
commonHttpConfig = ''
error_log stderr;
access_log /var/log/nginx/access.log;
'';
virtualHosts."~.*" = {
default = true;
rejectSSL = true;
globalRedirect = config.networking.domain;
};
};
}