new service! amdl
This commit is contained in:
parent
5c7720f462
commit
66ccec0f2c
11 changed files with 138 additions and 14 deletions
|
@ -6,6 +6,14 @@ let
|
|||
in {
|
||||
options.modules.services.nginx-config = {
|
||||
enable = mkEnableOption "enable and configure nginx, a high performance web server";
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
default = 80;
|
||||
};
|
||||
sslPort = mkOption {
|
||||
type = types.int;
|
||||
default = 443;
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
@ -19,6 +27,9 @@ in {
|
|||
services.nginx = {
|
||||
enable = true;
|
||||
|
||||
defaultHTTPListenPort = cfg.port;
|
||||
defaultSSLListenPort = cfg.sslPort;
|
||||
|
||||
recommendedTlsSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedGzipSettings = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue