14 lines
304 B
Nix
14 lines
304 B
Nix
{ config, lib, ... }:
|
|
let
|
|
cfg = config.const.host.nginx;
|
|
in
|
|
{
|
|
"mail.${cfg.domain}" = {
|
|
inherit (cfg) sslCertificate sslCertificateKey;
|
|
enableACME = false;
|
|
forceSSL = false;
|
|
extraConfig = lib.mkForce cfg.extraConfig;
|
|
locations."~* \\.php(/|$)".extraConfig = cfg.allowLocal;
|
|
};
|
|
}
|