Skip to content

Instantly share code, notes, and snippets.

@mazedlx
Created November 20, 2018 12:51
Show Gist options
  • Save mazedlx/2a2b41ba358564a15351734cbb03e9d5 to your computer and use it in GitHub Desktop.
Save mazedlx/2a2b41ba358564a15351734cbb03e9d5 to your computer and use it in GitHub Desktop.
GoAccess command for mazedlx.net
zcat /var/log/nginx/access.log.*.gz | goaccess /var/log/nginx/access.log.1 \
/var/log/nginx/access.log \
--log-format=COMBINED \
-o /var/www/html/stats/index.html \
--ws-url=wss://stats.mazedlx.net:7890 \
--real-time-html \
--daemonize \
--ssl-cert=/etc/letsencrypt/live/mazedlx.net/fullchain.pem \
--ssl-key=/etc/letsencrypt/live/mazedlx.net/privkey.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment