0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

nixos/roundcube: add configureNginx option

This commit is contained in:
Izorkin 2023-12-26 00:10:01 +03:00
parent 3b74d8781f
commit 7ead602f93
No known key found for this signature in database
GPG key ID: 1436C1B3F3679F09

View file

@ -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 = "";
@ -142,7 +148,7 @@ in
${cfg.extraConfig}
'';
services.nginx = {
services.nginx = lib.mkIf cfg.configureNginx {
enable = true;
virtualHosts = {
${cfg.hostName} = {