New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/awstats: refactor module #73959
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Well done. Just a few minor changes requested. Thanks for your work on this.
@aristaeus I'd like to move this along so I will probably try to do some testing on this. Can you provide me with a minimal configuration to get this up and running? I have an apache server with 2 domains I can test this on. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was testing with httpd
(I don't run nginx
) so I had make a few adjustments in my configuration.nix
to match your code.
@aristaeus ping |
@aristaeus all folders under |
"${opts.webService.urlPrefix}/" = { | ||
alias = "${cfg.dataDir}/${name}/"; | ||
extraConfig = '' | ||
autoindex on; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aristaeus optional suggestion, but it looks like you might want to direct users to awstats.${name}.html
instead of a directory listing here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aristaeus you should also add an entry to the release notes. You can advertise your great work here!
I haven't quite figured out why this happens yet but this change seems to have broken builds of the manual for me:
I can dig into this more after the holidays, but I wanted to put this here so I know where to look and in case someone else can already see what's happening. |
@ArdaXi fixed |
Motivation for this change
After some discussion in #72961, I took over as the maintainer for awstats with a mandate to refactor it. The new module is much more flexible, and should cover most use cases.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Examples
@griff I haven't tested the mail config but it should mostly work - let me know how you go.
If anyone else can test this too that would be good. @aanderse