nix/host/x86_64-linux/home/nginx/Mailserver.nix

14 lines
304 B
Nix
Raw Normal View History

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