Script used to generate stats.42l.fr
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
neil bb27f3b66b adding service name aliases for main and rsshort 1 year ago
LICENSE Initial commit 3 years ago
README.md Mise à jour de 'README.md' 3 years ago
gen-indexes.py adding service name aliases for main and rsshort 1 year ago
index-service.html migrating from stats-tools 3 years ago
index.html migrating from stats-tools 3 years ago
requirements.txt migrating from stats-tools 3 years ago
test.html migrating from stats-tools 3 years ago

README.md

gen-indexes

Script used to generate stats.42l.fr

This script generates index.html files to browse GoAccess reports through a user-friendly interface.

It can be run in a Docker container, but you must install additional packages (pip3 install -r requirements.txt), mainly:

  • Jinja2, the templating engine used to generate the HTML files
  • natsort, to apply a natural ordering on a list.

Mount your reports volume in the /base/ folder (and/or edit the script's constants to your needs).

The templates' design is quite poor and the script doesn't handle errors very well. PRs welcome!