23 lines
443 B
Nix
23 lines
443 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;
|
|
};
|
|
};
|
|
}
|