diff --git a/Dockerfile b/Dockerfile index 2757785..692503a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,8 +21,6 @@ RUN ./scripts/release.sh # Production run FROM nginx:stable-alpine -RUN rm /var/log/nginx/access.log - COPY nginx.conf /etc/nginx/nginx.conf COPY --from=build /app/public/ /usr/share/nginx/html diff --git a/content/posts/goaccess-analytics.md b/content/posts/goaccess-analytics.md index daa4f66..6381d6e 100644 --- a/content/posts/goaccess-analytics.md +++ b/content/posts/goaccess-analytics.md @@ -48,7 +48,7 @@ services: Yes, quite well actually! I've got an incredibly simple analytics tool which gives just the information I need. It's performant, it's simple, and has almost 0 runtime overhead. -You can see it in action here: https://theorangeone.net/stats/. +You can see it in action here: ~~theorangeone.net/stats.~~ ## Issues @@ -57,3 +57,5 @@ GoAccess isn't the perfect tool for everyone. Because it's so simple, it's not e I've also heard GoAccess can get slow to generate with incredibly large sites, which whilst unlikely to affect me, could happen to someone! Besides that, this was a great success! + +Update August 2020: I recently decided to deploy a fully-featured yet still private analytics solution using [Plausible]({{< relref "self-hosting-plausible" >}}). diff --git a/nginx.conf b/nginx.conf index 9254cd6..c19a516 100644 --- a/nginx.conf +++ b/nginx.conf @@ -14,7 +14,6 @@ http { include /etc/nginx/mime.types; access_log /dev/stdout; - access_log /var/log/nginx/access.log; server_tokens off; @@ -42,23 +41,15 @@ http { add_header Referrer-Policy "same-origin"; add_header Strict-Transport-Security "max-age=5184000"; - - location ~* ^/(_matrix|stats|\.well-known/matrix)+? { - access_log off; - } - location /ping { - access_log off; return 200 "PONG"; } location ~* \.(png|jpg|gif|svg|txt|css|js|xml|eot|ttf|woff2|woff)$ { - access_log off; add_header Cache-Control "public, max-age=0, must-revalidate"; } location = /favicon.ico { - access_log off; return 302 /img/logo-transparent.png; }