Merge pull request 'web01: Filter out matrix-org user agent' (#165) from Qubasa-main into main
All checks were successful
checks / test (push) Successful in 26s

This commit is contained in:
clan-bot 2024-04-17 11:16:10 +00:00
commit 47ca981903

View File

@ -6,14 +6,16 @@ let
pub_goaccess = "/var/www/goaccess"; pub_goaccess = "/var/www/goaccess";
user-agent-list = pkgs.writeText "browsers.list" '' user-agent-list = pkgs.writeText "browsers.list" ''
# List of browsers and their categories # List of browsers and their categories
# e.g., WORD delimited by tab(s) \t TYPE # e.g., WORD delimited by tab(s) \t TYPE
# TYPE can be any type and it's not limited to the ones below. # TYPE can be any type and it's not limited to the ones below.
github-actions-checkout GitHubActions matrix Matrix-Preview
git Git slack Slack
connect-go Go github-actions-checkout GitHubActions
Go-http-client Go git Git
curl Curl connect-go Go
Go-http-client Go
curl Curl
''; '';
in in
{ {
@ -41,7 +43,9 @@ in
# https://raw.githubusercontent.com/allinurl/goaccess/master/config/browsers.list # https://raw.githubusercontent.com/allinurl/goaccess/master/config/browsers.list
systemd.services.goaccess = { systemd.services.goaccess = {
description = "GoAccess server monitoring"; description = "GoAccess server monitoring";
preStart = ''
rm -f ${pub_goaccess}/index.html
'';
serviceConfig = { serviceConfig = {
User = "goaccess"; User = "goaccess";
Group = "nginx"; Group = "nginx";