From 2f2b578bee0ab204a2e626ec9f7ca5c290634456 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 6 Jan 2019 12:53:23 +0100 Subject: [PATCH] Add stats for ludivinecassal.com --- virtual/eldiron.nix | 1 + virtual/packages/ludivinecassal.nix | 2 + virtual/packages/ludivinecassal_goaccess.conf | 99 +++++++++++++++++++ 3 files changed, 102 insertions(+) create mode 100644 virtual/packages/ludivinecassal_goaccess.conf diff --git a/virtual/eldiron.nix b/virtual/eldiron.nix index c1a7761..7d732ac 100644 --- a/virtual/eldiron.nix +++ b/virtual/eldiron.nix @@ -560,6 +560,7 @@ stats = domain: conf: "${pkgs.gnused}/bin/sed -n '/\\['$(LC_ALL=C ${pkgs.coreutils}/bin/date -d yesterday +'%d\\/%b\\/%Y')'/ p' /var/log/httpd/access_log-${domain} | ${pkgs.goaccess}/bin/goaccess -o /var/lib/goaccess/${domain}/index.html -p ${conf}"; in [ "5 0 * * * root ${stats "aten.pro" ./packages/aten_goaccess.conf}" + "5 0 * * * root ${stats "ludivinecassal.com" ./packages/ludivinecassal_goaccess.conf}" ]; }; }; diff --git a/virtual/packages/ludivinecassal.nix b/virtual/packages/ludivinecassal.nix index 636306a..03f68f7 100644 --- a/virtual/packages/ludivinecassal.nix +++ b/virtual/packages/ludivinecassal.nix @@ -71,6 +71,8 @@ let group = "wwwrun"; modules = [ "proxy_fcgi" ]; vhostConf = '' + Use Stats ludivinecassal.com + SetHandler "proxy:unix:${phpFpm.socket}|fcgi://localhost" diff --git a/virtual/packages/ludivinecassal_goaccess.conf b/virtual/packages/ludivinecassal_goaccess.conf new file mode 100644 index 0000000..25e5f63 --- /dev/null +++ b/virtual/packages/ludivinecassal_goaccess.conf @@ -0,0 +1,99 @@ +time-format %H:%M:%S +date-format %d/%b/%Y + +#sur immae.eu +#log-format %v %h %^[%d:%t %^] "%r" %s %b "%R" "%u" $^ + +log-format VCOMBINED +#= %v:%^ %h %^[%d:%t %^] "%r" %s %b "%R" "%u" + +html-prefs {"theme":"bright","layout":"vertical"} + +exclude-ip 188.165.209.148 +exclude-ip 178.33.252.96 +exclude-ip 2001:41d0:2:9c94::1 +exclude-ip 2001:41d0:2:9c94:: +exclude-ip 176.9.151.89 +exclude-ip 2a01:4f8:160:3445:: +exclude-ip 82.255.56.72 + +no-query-string true + +keep-db-files true +load-from-disk true +db-path /var/lib/goaccess/ludivinecassal.com + +ignore-panel REFERRERS +ignore-panel KEYPHRASES + +static-file .css +static-file .js +static-file .jpg +static-file .png +static-file .gif +static-file .ico +static-file .jpeg +static-file .pdf +static-file .csv +static-file .mpeg +static-file .mpg +static-file .swf +static-file .woff +static-file .woff2 +static-file .xls +static-file .xlsx +static-file .doc +static-file .docx +static-file .ppt +static-file .pptx +static-file .txt +static-file .zip +static-file .ogg +static-file .mp3 +static-file .mp4 +static-file .exe +static-file .iso +static-file .gz +static-file .rar +static-file .svg +static-file .bmp +static-file .tar +static-file .tgz +static-file .tiff +static-file .tif +static-file .ttf +static-file .flv +#static-file .less +#static-file .ac3 +#static-file .avi +#static-file .bz2 +#static-file .class +#static-file .cue +#static-file .dae +#static-file .dat +#static-file .dts +#static-file .ejs +#static-file .eot +#static-file .eps +#static-file .img +#static-file .jar +#static-file .map +#static-file .mid +#static-file .midi +#static-file .ogv +#static-file .webm +#static-file .mkv +#static-file .odp +#static-file .ods +#static-file .odt +#static-file .otf +#static-file .pict +#static-file .pls +#static-file .ps +#static-file .qt +#static-file .rm +#static-file .svgz +#static-file .wav +#static-file .webp + + -- 2.41.0