LoutreOS: indexation de logs nginx avec Loki

This commit is contained in:
nyanloutre 2021-01-06 02:12:01 +01:00
parent 8a2ca1fa21
commit 21740ed665
3 changed files with 111 additions and 1 deletions

View file

@ -222,7 +222,12 @@ in
include ${pkgs.nginx}/conf/fastcgi.conf;
'';
};
} // { root = "/mnt/medias/iso_linux"; };
} // {
root = "/mnt/medias/iso_linux";
extraConfig = ''
access_log /var/log/nginx/$host.log;
'';
};
};
appendConfig = let
rootLocation = config.services.nginx.virtualHosts."stream.nyanlout.re".locations."/".root;