forked from clan/clan-infra
web01: Filter out Slack user agents
This commit is contained in:
parent
fb780887e3
commit
f45621463d
@ -6,15 +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.
|
||||||
matrix-org Matrix-Preview
|
matrix Matrix-Preview
|
||||||
github-actions-checkout GitHubActions
|
slack Slack
|
||||||
git Git
|
github-actions-checkout GitHubActions
|
||||||
connect-go Go
|
git Git
|
||||||
Go-http-client Go
|
connect-go Go
|
||||||
curl Curl
|
Go-http-client Go
|
||||||
|
curl Curl
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@ -42,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";
|
||||||
|
Loading…
Reference in New Issue
Block a user