Forgejo: Enable AWstats

This commit is contained in:
fruchti 2025-07-04 09:22:50 +02:00
parent c62cb63dbc
commit 11b3dd2927

View file

@ -135,6 +135,19 @@ in
access_log /var/log/nginx/access.${domain}.log combined_realip;
'';
locations."/awstats/" = {
basicAuthFile = "/secrets/webstats_auth";
};
};
};
services.awstats = {
enable = true;
updateAt = "hourly";
configs."${domain}" = {
logFile = "/var/log/nginx/access.${domain}.log";
domain = domain;
webService.enable = true;
};
};