Skip to content

Commit

Permalink
nixos/roundcube: add configureNginx option
Browse files Browse the repository at this point in the history
  • Loading branch information
Izorkin committed Dec 30, 2023
1 parent 3b74d87 commit 7ead602
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nixos/modules/services/mail/roundcube.nix
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ in
apply = configuredMaxAttachmentSize: "${toString (configuredMaxAttachmentSize * 1.3)}M";
};

configureNginx = lib.mkOption {
type = lib.types.bool;
default = true;
description = lib.mdDoc "Configure nginx as a reverse proxy for roundcube.";
};

extraConfig = mkOption {
type = types.lines;
default = "";
Expand Down Expand Up @@ -142,7 +148,7 @@ in
${cfg.extraConfig}
'';

services.nginx = {
services.nginx = lib.mkIf cfg.configureNginx {
enable = true;
virtualHosts = {
${cfg.hostName} = {
Expand Down

0 comments on commit 7ead602

Please sign in to comment.