summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2020-05-01 21:09:02 -0400
committerThedro Neely <thedroneely@gmail.com>2020-05-01 21:09:02 -0400
commitd7d98b1a8c82143ecee727f1c0ed9849648dc224 (patch)
treef4b7066c3fa2237806555bcd6ff5b1e995de141f
parent8f384ac4f13033e071f92ace3edd991486ffb47c (diff)
downloadplaybooks-d7d98b1a8c82143ecee727f1c0ed9849648dc224.tar.gz
playbooks-d7d98b1a8c82143ecee727f1c0ed9849648dc224.tar.bz2
playbooks-d7d98b1a8c82143ecee727f1c0ed9849648dc224.zip
roles/goaccess/templates: Add
-rw-r--r--roles/goaccess/templates/browsers.list.j299
-rw-r--r--roles/goaccess/templates/exclude.list.j22
-rw-r--r--roles/goaccess/templates/favicon.ico.j2bin0 -> 318 bytes
-rw-r--r--roles/goaccess/templates/goaccess.service.j28
-rw-r--r--roles/goaccess/templates/goaccess.timer.j29
5 files changed, 118 insertions, 0 deletions
diff --git a/roles/goaccess/templates/browsers.list.j2 b/roles/goaccess/templates/browsers.list.j2
new file mode 100644
index 0000000..45a1c6a
--- /dev/null
+++ b/roles/goaccess/templates/browsers.list.j2
@@ -0,0 +1,99 @@
+Chef Client Crawlers
+Abonti Crawlers
+SISTRIX Crawlers
+DotBot Crawlers
+Speedy Spider Crawlers
+Sosospider Crawlers
+BPImageWalker Crawlers
+DoCoMo Crawlers
+GSLFbot Crawlers
+YodaoBot Crawlers
+AddThis Crawlers
+Purebot Crawlers
+CCBot Crawlers
+findlinks Crawlers
+ichiro Crawlers
+Linguee Bot Crawlers
+Gigabot Crawlers
+BacklinkCrawler Crawlers
+distilator Crawlers
+Aboundex Crawlers
+UnwindFetchor Crawlers
+SBIder Crawlers
+TestNutch Crawlers
+DomainCrawler Crawlers
+NextGenSearchBot Crawlers
+SEOENGWorldBot Crawlers
+Cityreview Crawlers
+PagePeeker Crawlers
+JS-Kit Crawlers
+ScreenerBot Crawlers
+ShowyouBot Crawlers
+SolomonoBot Crawlers
+Domnutch Crawlers
+MaxPoint Crawlers
+NCBot Crawlers
+TosCrawler Crawlers
+Updownerbot Crawlers
+OpenWebSpider Crawlers
+WordPress Crawlers
+PEAR Crawlers
+ZumBot Crawlers
+YisouSpider Crawlers
+W3C Crawlers
+vcheck Crawlers
+PercolateCrawler Crawlers
+NING Crawlers
+gvfs Crawlers
+CatchBot Crawlers
+Combine Crawlers
+A6-Indexer Crawlers
+Altresium Crawlers
+Comodo Crawlers
+crawler4j Crawlers
+Cricket Crawlers
+EC2LinkFinder Crawlers
+envolk Crawlers
+GeoHasher Crawlers
+HTMLParser Crawlers
+MLBot Crawlers
+Jaxified Crawlers
+LinkWalker Crawlers
+nutch Crawlers
+PostRank Crawlers
+keybase-proofs Crawlers
+CommonCrawler Crawlers
+X-CAD-SE Crawlers
+Safeassign Crawlers
+Nmap Crawlers
+sqlmap Crawlers
+Jorgee Crawlers
+PxBroker Crawlers
+Seekport Crawlers
+adscanner Crawlers
+AfD-Verbotsverfahren_JETZT! Crawlers
+DuckDuckGo-favicons-Bot Crawlers
+bingbot Crawlers
+SemrushBot Crawlers
+Bytespider Crawlers
+MJ12bot Crawlers
+AhrefsBot Crawlers
+UptimeRobot Crawlers
+Qwantify Crawlers
+Go-http-client Crawlers
+UCBrowser Crawlers
+HUAWEIFRD-AL00 Crawlers
+msnbot Crawlers
+
+Vienna Feeds
+Windows-RSS-Platform Feeds
+newsbeuter Feeds
+Wrangler Feeds
+Fever Feeds
+Tiny Feeds
+FreshRSS Feeds
+KrISS Feeds
+SimplePie Feeds
+Feedsubs Feeds
+UniversalFeedParser Feeds
+Ruby Feeds
diff --git a/roles/goaccess/templates/exclude.list.j2 b/roles/goaccess/templates/exclude.list.j2
new file mode 100644
index 0000000..e40217c
--- /dev/null
+++ b/roles/goaccess/templates/exclude.list.j2
@@ -0,0 +1,2 @@
+wp-login.php
+robots.txt
diff --git a/roles/goaccess/templates/favicon.ico.j2 b/roles/goaccess/templates/favicon.ico.j2
new file mode 100644
index 0000000..16e06dd
--- /dev/null
+++ b/roles/goaccess/templates/favicon.ico.j2
Binary files differ
diff --git a/roles/goaccess/templates/goaccess.service.j2 b/roles/goaccess/templates/goaccess.service.j2
new file mode 100644
index 0000000..3b55ff2
--- /dev/null
+++ b/roles/goaccess/templates/goaccess.service.j2
@@ -0,0 +1,8 @@
+[Unit]
+Description=GoAccess Dashboard
+
+[Service]
+Type=oneshot
+ExecStart=/bin/sh -c 'zcat -f /var/log/nginx/access.log-* | grep -v -f /opt/goaccess/config/exclude.list | goaccess --config-file=/opt/goaccess/config/goaccess.conf -'
+CPUQuota=20%
+Nice=19
diff --git a/roles/goaccess/templates/goaccess.timer.j2 b/roles/goaccess/templates/goaccess.timer.j2
new file mode 100644
index 0000000..74e201e
--- /dev/null
+++ b/roles/goaccess/templates/goaccess.timer.j2
@@ -0,0 +1,9 @@
+[Unit]
+Description=Update GoAccess Statistics
+
+[Timer]
+OnCalendar=*:0/30
+RandomizedDelaySec=300
+
+[Install]
+WantedBy=timers.target