2 { pkgs, lib, config, ... }:
4 inherit (config) networking;
5 inherit (config.services) nginx;
6 srv = "lemoutona5pattes";
10 virtualHosts."${srv}" = {
11 serverName = "${srv}.${domain}";
14 root = "/home/julm/www/${srv}";
16 access_log /var/log/nginx/${domain}/${srv}/access.log json buffer=32k;
17 error_log /var/log/nginx/${domain}/${srv}/error.log warn;
19 locations."/".extraConfig = ''
22 fancyindex_name_length 255;
23 fancyindex_exact_size off;
27 systemd.services.nginx.serviceConfig.LogsDirectory = lib.mkForce ["nginx/${domain}/${srv}"];