forked from clan/clan-infra
Merge pull request 'web01: Filter out matrix-org user agent' (#165) from Qubasa-main into main
This commit is contained in:
commit
47ca981903
@ -6,14 +6,16 @@ let
|
||||
pub_goaccess = "/var/www/goaccess";
|
||||
|
||||
user-agent-list = pkgs.writeText "browsers.list" ''
|
||||
# List of browsers and their categories
|
||||
# e.g., WORD delimited by tab(s) \t TYPE
|
||||
# TYPE can be any type and it's not limited to the ones below.
|
||||
github-actions-checkout GitHubActions
|
||||
git Git
|
||||
connect-go Go
|
||||
Go-http-client Go
|
||||
curl Curl
|
||||
# List of browsers and their categories
|
||||
# e.g., WORD delimited by tab(s) \t TYPE
|
||||
# TYPE can be any type and it's not limited to the ones below.
|
||||
matrix Matrix-Preview
|
||||
slack Slack
|
||||
github-actions-checkout GitHubActions
|
||||
git Git
|
||||
connect-go Go
|
||||
Go-http-client Go
|
||||
curl Curl
|
||||
'';
|
||||
in
|
||||
{
|
||||
@ -41,7 +43,9 @@ in
|
||||
# https://raw.githubusercontent.com/allinurl/goaccess/master/config/browsers.list
|
||||
systemd.services.goaccess = {
|
||||
description = "GoAccess server monitoring";
|
||||
|
||||
preStart = ''
|
||||
rm -f ${pub_goaccess}/index.html
|
||||
'';
|
||||
serviceConfig = {
|
||||
User = "goaccess";
|
||||
Group = "nginx";
|
||||
|
Loading…
Reference in New Issue
Block a user