2 { pkgs, lib, config, ... }:
4 inherit (config) networking;
5 inherit (config.services) nginx;
6 srv = "lemoutona5pattes";
9 systemd.services.nginx.serviceConfig = {
10 BindPaths = [ "/home/julm/work/sourcephile/${srv}:/www" ];
13 virtualHosts."${srv}" = {
14 serverName = "${srv}.${domain}";
19 access_log /var/log/nginx/${domain}/${srv}/access.log json buffer=32k;
20 error_log /var/log/nginx/${domain}/${srv}/error.log warn;
22 locations."/".extraConfig = ''
25 fancyindex_name_length 255;
26 fancyindex_exact_size off;
30 systemd.services.nginx.serviceConfig.LogsDirectory = lib.mkForce ["nginx/${domain}/${srv}"];