Plausible proxy for fly.io using NGINX

NGINX is a very efficient forward proxy and the ideal tool for this job. The goal is to set up a proxy in front of Plausible that consumes very little memory. You can find the code below as repo, ready to deploy. The Dockerfile is pretty basic: FROM nginx COPY nginx.conf /etc/nginx/nginx.conf RUN mkdir -p /var/cache/nginx CMD ["nginx", "-g", "daemon off;"] We need to fetch the tracking script from Plausible:...

January 19, 2023 1 min

Error handling for web developers

Error handling is a broad topic. How to do it right is not always obvious. The unsatisfying answer in general is “it depends”. Let’s have a look at a specific example using TypeScript in the context of web development. ...