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 = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
# Ensure ACME challenge directory is accessible for all domains
|
# Add virtual host for mail.osbm.dev to handle ACME challenges
|
||||||
commonHttpConfig = ''
|
virtualHosts."mail.osbm.dev" = lib.mkIf config.osbmModules.services.mailserver.enable {
|
||||||
# Allow access to ACME challenge directory
|
locations."/.well-known/acme-challenge" = {
|
||||||
location /.well-known/acme-challenge {
|
root = "/var/lib/acme/acme-challenge";
|
||||||
root /var/lib/acme/acme-challenge;
|
};
|
||||||
allow all;
|
};
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue