Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
nixos/awstats: drop module #72961
Motivation for this change
I looked into setting up AWstats a few weeks ago, but after 5 minutes couldn't work out how to use this module. For example, there is no option to specify log locations - it seems like this module assumes you're only serving one website, and that website is using apache.
I was planning to roll my own solution - and have been umming and ahing about pushing it upstream. My main concern was breaking backwards compatibility - but if the alternative is removal then that probably isn't a problem.
So I'd be happy to take ownership of this and do some refactoring to make it more flexible.
@aristaeus yeah the module isn't complete, makes far too many assumptions, and only works use under fairly limited scope.
I'd love to coordinate with you if you're rewriting this, as my motivation for this PR is changes I'm making to the
Please note that it is very hacky and only works for postfix and though there are options for multiple domains it only collects statistics for all the configured postfix domains combined. And if the journald log is very large the first time the hourly service is run it will be very slow because it reads the log twice.