Add autodiscovery to the mailserver

This commit is contained in:
Jimbo 2025-03-03 03:41:49 -05:00
parent 4a18eccddd
commit f428198857
4 changed files with 39 additions and 7 deletions

View file

@ -0,0 +1,11 @@
{ config, lib, ... }:
{
services.nginx.virtualHosts."autoconfig.nixfox.ca" = lib.mkIf config.mailserver.enable {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:1323";
proxyWebsockets = true;
};
};
}