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

14 lines
311 B
Nix
Raw Normal View History

{ config, lib, ... }:
let
2025-01-16 12:50:27 +03:00
cfg = config.module.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
}