mirror of
https://github.com/YGGverse/htcount.git
synced 2026-03-31 17:15:37 +00:00
add ignore-host systemd example
This commit is contained in:
parent
a95e378a45
commit
baa0fd383e
1 changed files with 3 additions and 0 deletions
|
|
@ -101,6 +101,8 @@ Type=simple
|
||||||
ExecStart=/usr/local/bin/htcount --source /var/log/nginx/access.log\
|
ExecStart=/usr/local/bin/htcount --source /var/log/nginx/access.log\
|
||||||
--export-svg /var/www/htcount/visitors.svg\
|
--export-svg /var/www/htcount/visitors.svg\
|
||||||
--template-svg /path/to/default/template.svg\
|
--template-svg /path/to/default/template.svg\
|
||||||
|
--ignore-host 127.0.0.1
|
||||||
|
--ignore-host 127.0.0.2
|
||||||
--update 3600\
|
--update 3600\
|
||||||
--debug n
|
--debug n
|
||||||
StandardOutput=null
|
StandardOutput=null
|
||||||
|
|
@ -111,6 +113,7 @@ WantedBy=multi-user.target
|
||||||
```
|
```
|
||||||
* make sure `/var/www/htcount` exists
|
* make sure `/var/www/htcount` exists
|
||||||
* replace `/path/to/default/template.svg` with your value
|
* replace `/path/to/default/template.svg` with your value
|
||||||
|
* use `ignore-host` to skip local host requests
|
||||||
|
|
||||||
* `systemctl daemon-reload` - update configuration
|
* `systemctl daemon-reload` - update configuration
|
||||||
* `systemctl enable` - launch on system startup
|
* `systemctl enable` - launch on system startup
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue