nix/host/x86_64-linux/home/nginx/Mailserver.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;
};
}