2 { pkgs, lib, config, ... }:
3 let inherit (config) networking;
4 inherit (config.services) nginx;
9 virtualHosts."${srv}" = {
10 serverName = "${srv}.${domain}";
16 error_log /var/log/nginx/${domain}/${srv}/error.log warn;
18 default_type text/plain;
20 locations."/addr".return = "200 $remote_addr\\n";
23 systemd.services.nginx.serviceConfig.LogsDirectory = lib.mkForce ["nginx/${domain}/${srv}"];