diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-01-07 17:30:20 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-01-07 17:30:20 +0100 |
commit | 6bd6d033ec152e0e0aa60ff48771f46d723c2d7e (patch) | |
tree | cab1ff3ffc183ad272426004895e43f715b4e5d6 /virtual/packages | |
parent | 7d8b50d392f3aa588518d81b547ffe8cd9364544 (diff) | |
download | Nix-6bd6d033ec152e0e0aa60ff48771f46d723c2d7e.tar.gz Nix-6bd6d033ec152e0e0aa60ff48771f46d723c2d7e.tar.zst Nix-6bd6d033ec152e0e0aa60ff48771f46d723c2d7e.zip |
Add Chloe production and stats
Diffstat (limited to 'virtual/packages')
-rw-r--r-- | virtual/packages/chloe.json | 6 | ||||
-rw-r--r-- | virtual/packages/chloe.nix | 4 | ||||
-rw-r--r-- | virtual/packages/chloe_goaccess.conf | 99 |
3 files changed, 105 insertions, 4 deletions
diff --git a/virtual/packages/chloe.json b/virtual/packages/chloe.json index d9cf651..686d751 100644 --- a/virtual/packages/chloe.json +++ b/virtual/packages/chloe.json | |||
@@ -1,5 +1,5 @@ | |||
1 | { | 1 | { |
2 | "tag": "1a2ef9a-master", | 2 | "tag": "96fc4eb-master", |
3 | "meta": { | 3 | "meta": { |
4 | "name": "chloe", | 4 | "name": "chloe", |
5 | "url": "gitolite@git.immae.eu:perso/Immae/Sites/Chloe", | 5 | "url": "gitolite@git.immae.eu:perso/Immae/Sites/Chloe", |
@@ -7,8 +7,8 @@ | |||
7 | }, | 7 | }, |
8 | "git": { | 8 | "git": { |
9 | "url": "gitolite@git.immae.eu:perso/Immae/Sites/Chloe", | 9 | "url": "gitolite@git.immae.eu:perso/Immae/Sites/Chloe", |
10 | "rev": "1a2ef9acee91792e8096854919f0a2f005a3f481", | 10 | "rev": "96fc4eb0099a29b0f9a58fb4eaec4bf14ac65f0a", |
11 | "sha256": "1h10d2bgvpkm7yi7sbshfi3h50fx202jgnfwiarq5wm947f9phrn", | 11 | "sha256": "0mf15j6z86j2smm2k360cmm5djhcjbs9949pznwi57kw97vkm1s3", |
12 | "fetchSubmodules": true | 12 | "fetchSubmodules": true |
13 | } | 13 | } |
14 | } | 14 | } |
diff --git a/virtual/packages/chloe.nix b/virtual/packages/chloe.nix index 2ca1d6f..7288558 100644 --- a/virtual/packages/chloe.nix +++ b/virtual/packages/chloe.nix | |||
@@ -85,7 +85,9 @@ let | |||
85 | Require ldap-group cn=chloe.immae.eu,cn=httpd,ou=services,dc=immae,dc=eu | 85 | Require ldap-group cn=chloe.immae.eu,cn=httpd,ou=services,dc=immae,dc=eu |
86 | ErrorDocument 401 "<html><meta http-equiv=\"refresh\" content=\"0;url=https://osteopathe-cc.fr\"></html>" | 86 | ErrorDocument 401 "<html><meta http-equiv=\"refresh\" content=\"0;url=https://osteopathe-cc.fr\"></html>" |
87 | </Location> | 87 | </Location> |
88 | '' else ""} | 88 | '' else '' |
89 | Use Stats osteopathe-cc.fr | ||
90 | ''} | ||
89 | ''; | 91 | ''; |
90 | }; | 92 | }; |
91 | activationScript = { | 93 | activationScript = { |
diff --git a/virtual/packages/chloe_goaccess.conf b/virtual/packages/chloe_goaccess.conf new file mode 100644 index 0000000..89cff6d --- /dev/null +++ b/virtual/packages/chloe_goaccess.conf | |||
@@ -0,0 +1,99 @@ | |||
1 | time-format %H:%M:%S | ||
2 | date-format %d/%b/%Y | ||
3 | |||
4 | #sur immae.eu | ||
5 | #log-format %v %h %^[%d:%t %^] "%r" %s %b "%R" "%u" $^ | ||
6 | |||
7 | log-format VCOMBINED | ||
8 | #= %v:%^ %h %^[%d:%t %^] "%r" %s %b "%R" "%u" | ||
9 | |||
10 | html-prefs {"theme":"bright","layout":"vertical"} | ||
11 | |||
12 | exclude-ip 188.165.209.148 | ||
13 | exclude-ip 178.33.252.96 | ||
14 | exclude-ip 2001:41d0:2:9c94::1 | ||
15 | exclude-ip 2001:41d0:2:9c94:: | ||
16 | exclude-ip 176.9.151.89 | ||
17 | exclude-ip 2a01:4f8:160:3445:: | ||
18 | exclude-ip 82.255.56.72 | ||
19 | |||
20 | no-query-string true | ||
21 | |||
22 | keep-db-files true | ||
23 | load-from-disk true | ||
24 | db-path /var/lib/goaccess/osteopathe-cc.fr | ||
25 | |||
26 | ignore-panel REFERRERS | ||
27 | ignore-panel KEYPHRASES | ||
28 | |||
29 | static-file .css | ||
30 | static-file .js | ||
31 | static-file .jpg | ||
32 | static-file .png | ||
33 | static-file .gif | ||
34 | static-file .ico | ||
35 | static-file .jpeg | ||
36 | static-file .pdf | ||
37 | static-file .csv | ||
38 | static-file .mpeg | ||
39 | static-file .mpg | ||
40 | static-file .swf | ||
41 | static-file .woff | ||
42 | static-file .woff2 | ||
43 | static-file .xls | ||
44 | static-file .xlsx | ||
45 | static-file .doc | ||
46 | static-file .docx | ||
47 | static-file .ppt | ||
48 | static-file .pptx | ||
49 | static-file .txt | ||
50 | static-file .zip | ||
51 | static-file .ogg | ||
52 | static-file .mp3 | ||
53 | static-file .mp4 | ||
54 | static-file .exe | ||
55 | static-file .iso | ||
56 | static-file .gz | ||
57 | static-file .rar | ||
58 | static-file .svg | ||
59 | static-file .bmp | ||
60 | static-file .tar | ||
61 | static-file .tgz | ||
62 | static-file .tiff | ||
63 | static-file .tif | ||
64 | static-file .ttf | ||
65 | static-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 | |||