4 inherit (config.services) nginx;
5 srv = "lemoutona5pattes";
8 systemd.services.nginx.serviceConfig = {
9 BindPaths = [ "/home/julm/work/sourcephile/${srv}:/www" ];
12 virtualHosts."${srv}.${domain}" = {
17 access_log /var/log/nginx/${domain}/${srv}/access.log json buffer=32k;
18 error_log /var/log/nginx/${domain}/${srv}/error.log warn;
20 locations."/".extraConfig = ''
23 fancyindex_name_length 255;
24 fancyindex_exact_size off;
28 systemd.services.nginx.serviceConfig.LogsDirectory = lib.mkForce [ "nginx/${domain}/${srv}" ];