aboutsummaryrefslogtreecommitdiff
path: root/articles/2021/GeoIP2-et-Goaccess.html
diff options
context:
space:
mode:
Diffstat (limited to 'articles/2021/GeoIP2-et-Goaccess.html')
-rwxr-xr-xarticles/2021/GeoIP2-et-Goaccess.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/articles/2021/GeoIP2-et-Goaccess.html b/articles/2021/GeoIP2-et-Goaccess.html
new file mode 100755
index 0000000..58c45a1
--- /dev/null
+++ b/articles/2021/GeoIP2-et-Goaccess.html
@@ -0,0 +1,33 @@
+<!doctype html>
+<html lang="EN">
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <link rel="stylesheet" href="/style.css">
+ <title>Bloggings</title>
+ </head>
+ <body>
+ <header>
+ <h1>Bloggings</h1>
+ <a href="/index.php">Back</a>
+
+ </header>
+
+<main>
+<article>
+<h2>GeoIP2 et Goaccess</h2>
+<h3>2021-04-09</h3>
+<p>Aujourd'hui, j'ai mis à jour <a href="https://goaccess.io/">goaccess</a> pour qu'il fonctionne avec GeoIP2.
+J'ai d'abord téléchargé et installé la dernière version de geoipupdate,
+puis créé un compte gratuit avec <a href="https://www.maxmind.com">Maxmind</a>
+et obtenu un identifiant de compte et une clé de licence.
+J'ai ajouté ceux-ci au fichier /etc/GeoIP.conf, et j'ai ajouté une entrée crontab avec
+<code>@weekly /usr/local/bin/geoipupdate</code>
+geoipupdate a mis à jour 2 fichiers dans /usr/share/GeoIP/.<br>
+J'ai ensuite modifié goaccess.conf avec <code>geoip-database /usr/share/GeoIP/GeoLite2-City.mmdb</code>
+et goaccess affiche maintenant les villes correspondant aux adresses IP.</p>
+</article>
+</main>
+<footer>
+<p>&nbsp;</p><p>§</p></footer>
+</body></html>