Proxy Issues
Took a very long break, almost a month. Really missed the project and it feels great to be back.
To start, I'll fix the nginx issue that's stopping the landing page from displaying.
It was showing 404. I checked everything: config, logs, file permissions. It turned out to be a weird rule that Certbot set where anything that didn't match the host barelytics.io would return 404. I didn't initially understand why, but have narrowed it down to the proxy pass I had added for the ingest endpoint.
This has taught me that I should probably version control these nginx configs. I'll open an issue on hatch.
Anyways, I still have the issue of the nginx not working when I add the proxy pass for /i. Not sure how I'll resolve that.
Looks like replacing /i with /ing resolves the issue. I have no idea why. Is Cloudflare blocking it? What's happening here? No idea, but doesn't matter, I'm moving on.
The landing page is now up and sessions are being recorded. I still need to fix the session UI. Next time. Very excited.