This commit is contained in:
Osman Faruk Bayram 2025-11-05 14:02:00 +03:00
parent a75dc9f0d2
commit 714cfb9c0e

View file

@ -9,14 +9,12 @@
services.nginx = {
enable = true;
# Ensure ACME challenge directory is accessible for all domains
commonHttpConfig = ''
# Allow access to ACME challenge directory
location /.well-known/acme-challenge {
root /var/lib/acme/acme-challenge;
allow all;
}
'';
# Add virtual host for mail.osbm.dev to handle ACME challenges
virtualHosts."mail.osbm.dev" = lib.mkIf config.osbmModules.services.mailserver.enable {
locations."/.well-known/acme-challenge" = {
root = "/var/lib/acme/acme-challenge";
};
};
};
networking.firewall.allowedTCPPorts = [