# Let's Encrypt validates xmpp.asxp.io on this host's port 80, but the # certificates are requested by Traefik on asxpio-ops: pass the # challenges on, answer nothing else. { ... }: { services.nginx = { enable = true; serverTokens = false; virtualHosts.acme-forward = { default = true; extraConfig = "access_log off;"; locations."/.well-known/acme-challenge/" = { proxyPass = "http://10.10.0.10"; extraConfig = "proxy_set_header Host $host;"; }; locations."/".return = "404"; }; }; networking.firewall.allowedTCPPorts = [ 80 ]; asxpio.security.ports = [ "tcp/80/nginx" ]; }