22 lines
413 B
Nix
22 lines
413 B
Nix
{
|
|
inputs,
|
|
outputs,
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
imports = [ outputs.nixosModules.nginx ];
|
|
|
|
services.nginx = {
|
|
enable = true;
|
|
forceSSL = true; # Force SSL for all vhosts by default if configured to use this option
|
|
openFirewall = true;
|
|
recommendedOptimisation = true;
|
|
recommendedGzipSettings = true;
|
|
recommendedProxySettings = true;
|
|
recommendedTlsSettings = true;
|
|
};
|
|
}
|