new service! amdl

This commit is contained in:
Reid 2025-05-19 01:15:21 -07:00
parent 5c7720f462
commit 66ccec0f2c
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
11 changed files with 138 additions and 14 deletions

View file

@ -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;