2024-12-18 09:40:11 +03:00
|
|
|
{ config, lib, ... }:
|
2025-01-09 15:38:56 +03:00
|
|
|
let
|
|
|
|
cfg = config.const.host.nginx;
|
|
|
|
in
|
2024-12-02 21:12:45 +03:00
|
|
|
{
|
2025-01-09 15:38:56 +03:00
|
|
|
"mail.${cfg.domain}" = {
|
|
|
|
inherit (cfg) sslCertificate sslCertificateKey;
|
2024-12-18 09:40:11 +03:00
|
|
|
enableACME = false;
|
|
|
|
forceSSL = false;
|
2025-01-09 15:38:56 +03:00
|
|
|
extraConfig = lib.mkForce cfg.extraConfig;
|
|
|
|
locations."~* \\.php(/|$)".extraConfig = cfg.allowLocal;
|
2024-12-18 09:40:11 +03:00
|
|
|
};
|
2024-12-02 21:12:45 +03:00
|
|
|
}
|