Modularize nginx
This commit is contained in:
parent
9d322d435c
commit
e451e70b93
8 changed files with 96 additions and 76 deletions
14
modules/system/services/server/webhost/nginx/default.nix
Normal file
14
modules/system/services/server/webhost/nginx/default.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedTlsSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedGzipSettings = true;
|
||||
recommendedProxySettings = true;
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
80 443
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue