2019-09-08 15:27:22 +02:00
|
|
|
{ options, config, lib, pkgs, ... }:
|
2019-06-22 23:58:08 +02:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
2019-09-08 15:27:22 +02:00
|
|
|
vHost = let
|
|
|
|
nextConf = import (lib.elemAt options.services.nextcloud.nginx.enable.declarations 0) { inherit config lib pkgs; };
|
|
|
|
in {
|
|
|
|
inherit ((elemAt nextConf.config.content.contents 2).content.services.nginx.virtualHosts.${config.services.nextcloud.hostName}) root extraConfig locations;
|
2019-06-22 23:58:08 +02:00
|
|
|
enableACME = config.services.nextcloud.https;
|
|
|
|
forceSSL = config.services.nextcloud.https;
|
|
|
|
};
|
|
|
|
}.vHost
|