fix
This commit is contained in:
parent
a75dc9f0d2
commit
714cfb9c0e
1 changed files with 6 additions and 8 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue