aboutsummaryrefslogtreecommitdiff
path: root/virtual
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-01-06 12:53:23 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-01-06 12:53:23 +0100
commit2f2b578bee0ab204a2e626ec9f7ca5c290634456 (patch)
tree90e98537a39f1f5bc55c472801f476ff16fa2639 /virtual
parent6f0d92b429069069e6d914f25bb30a549526f9d8 (diff)
downloadNix-2f2b578bee0ab204a2e626ec9f7ca5c290634456.tar.gz
Nix-2f2b578bee0ab204a2e626ec9f7ca5c290634456.tar.zst
Nix-2f2b578bee0ab204a2e626ec9f7ca5c290634456.zip
Add stats for ludivinecassal.com
Diffstat (limited to 'virtual')
-rw-r--r--virtual/eldiron.nix1
-rw-r--r--virtual/packages/ludivinecassal.nix2
-rw-r--r--virtual/packages/ludivinecassal_goaccess.conf99
3 files changed, 102 insertions, 0 deletions
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 @@
560 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}"; 560 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}";
561 in [ 561 in [
562 "5 0 * * * root ${stats "aten.pro" ./packages/aten_goaccess.conf}" 562 "5 0 * * * root ${stats "aten.pro" ./packages/aten_goaccess.conf}"
563 "5 0 * * * root ${stats "ludivinecassal.com" ./packages/ludivinecassal_goaccess.conf}"
563 ]; 564 ];
564 }; 565 };
565 }; 566 };
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
71 group = "wwwrun"; 71 group = "wwwrun";
72 modules = [ "proxy_fcgi" ]; 72 modules = [ "proxy_fcgi" ];
73 vhostConf = '' 73 vhostConf = ''
74 Use Stats ludivinecassal.com
75
74 <FilesMatch "\.php$"> 76 <FilesMatch "\.php$">
75 SetHandler "proxy:unix:${phpFpm.socket}|fcgi://localhost" 77 SetHandler "proxy:unix:${phpFpm.socket}|fcgi://localhost"
76 </FilesMatch> 78 </FilesMatch>
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 @@
1time-format %H:%M:%S
2date-format %d/%b/%Y
3
4#sur immae.eu
5#log-format %v %h %^[%d:%t %^] "%r" %s %b "%R" "%u" $^
6
7log-format VCOMBINED
8#= %v:%^ %h %^[%d:%t %^] "%r" %s %b "%R" "%u"
9
10html-prefs {"theme":"bright","layout":"vertical"}
11
12exclude-ip 188.165.209.148
13exclude-ip 178.33.252.96
14exclude-ip 2001:41d0:2:9c94::1
15exclude-ip 2001:41d0:2:9c94::
16exclude-ip 176.9.151.89
17exclude-ip 2a01:4f8:160:3445::
18exclude-ip 82.255.56.72
19
20no-query-string true
21
22keep-db-files true
23load-from-disk true
24db-path /var/lib/goaccess/ludivinecassal.com
25
26ignore-panel REFERRERS
27ignore-panel KEYPHRASES
28
29static-file .css
30static-file .js
31static-file .jpg
32static-file .png
33static-file .gif
34static-file .ico
35static-file .jpeg
36static-file .pdf
37static-file .csv
38static-file .mpeg
39static-file .mpg
40static-file .swf
41static-file .woff
42static-file .woff2
43static-file .xls
44static-file .xlsx
45static-file .doc
46static-file .docx
47static-file .ppt
48static-file .pptx
49static-file .txt
50static-file .zip
51static-file .ogg
52static-file .mp3
53static-file .mp4
54static-file .exe
55static-file .iso
56static-file .gz
57static-file .rar
58static-file .svg
59static-file .bmp
60static-file .tar
61static-file .tgz
62static-file .tiff
63static-file .tif
64static-file .ttf
65static-file .flv
66#static-file .less
67#static-file .ac3
68#static-file .avi
69#static-file .bz2
70#static-file .class
71#static-file .cue
72#static-file .dae
73#static-file .dat
74#static-file .dts
75#static-file .ejs
76#static-file .eot
77#static-file .eps
78#static-file .img
79#static-file .jar
80#static-file .map
81#static-file .mid
82#static-file .midi
83#static-file .ogv
84#static-file .webm
85#static-file .mkv
86#static-file .odp
87#static-file .ods
88#static-file .odt
89#static-file .otf
90#static-file .pict
91#static-file .pls
92#static-file .ps
93#static-file .qt
94#static-file .rm
95#static-file .svgz
96#static-file .wav
97#static-file .webp
98
99