From baa0fd383e719f8f520e111791973b4b9b6a5eed Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 8 Jun 2025 19:13:07 +0300 Subject: [PATCH] add `ignore-host` systemd example --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index e6bfe4b..d0be592 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,8 @@ Type=simple ExecStart=/usr/local/bin/htcount --source /var/log/nginx/access.log\ --export-svg /var/www/htcount/visitors.svg\ --template-svg /path/to/default/template.svg\ + --ignore-host 127.0.0.1 + --ignore-host 127.0.0.2 --update 3600\ --debug n StandardOutput=null @@ -111,6 +113,7 @@ WantedBy=multi-user.target ``` * make sure `/var/www/htcount` exists * replace `/path/to/default/template.svg` with your value +* use `ignore-host` to skip local host requests * `systemctl daemon-reload` - update configuration * `systemctl enable` - launch on system startup