Forgejo: Enable AWstats
This commit is contained in:
parent
c62cb63dbc
commit
11b3dd2927
1 changed files with 13 additions and 0 deletions
|
@ -135,6 +135,19 @@ in
|
||||||
|
|
||||||
access_log /var/log/nginx/access.${domain}.log combined_realip;
|
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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue