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}.${domain}" = {
18 access_log /var/log/nginx/${domain}/${srv}/access.log json buffer=32k;
19 error_log /var/log/nginx/${domain}/${srv}/error.log warn;
21 locations."/".extraConfig = ''
24 fancyindex_name_length 255;
25 fancyindex_exact_size off;
29 systemd.services.nginx.serviceConfig.LogsDirectory = lib.mkForce ["nginx/${domain}/${srv}"];