summaryrefslogtreecommitdiff
path: root/playbooks.d/webserver-nginx/share
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2022-05-09 11:41:35 +0200
committerPatrick Spek <p.spek@tyil.nl>2022-05-09 11:41:35 +0200
commitfb3d7ddfab881251c0d6d9470aa13267521d81d9 (patch)
treea0d4f80583882eec630568cda0b97dbc2964f236 /playbooks.d/webserver-nginx/share
parent430e75156d7789e889dafe44e90b28ddff3516a1 (diff)
Add goaccess
Diffstat (limited to 'playbooks.d/webserver-nginx/share')
-rw-r--r--playbooks.d/webserver-nginx/share/goaccess.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/playbooks.d/webserver-nginx/share/goaccess.service b/playbooks.d/webserver-nginx/share/goaccess.service
new file mode 100644
index 0000000..30a9478
--- /dev/null
+++ b/playbooks.d/webserver-nginx/share/goaccess.service
@@ -0,0 +1,14 @@
+[Unit]
+Description = goaccess service for nginx log analytics
+After = network.target
+
+[Service]
+Type = simple
+User = ${user}
+Group = ${group}
+Restart = always
+RuntimeDirectory = goaccess
+ExecStart = sh -c "goaccess -a -f /var/log/nginx/access/%i* -o %t/%i.html --real-time-html --ws-url %i"
+
+[Install]
+WantedBy = multi-user.target