## Self-hosting Mastodon
> [!note] Moved back to hosted mastodon
> I've since moved to [mastodon.social](https://mastodon.social/@tjpalanca) because I didn't see much point in running my own instance, especially after Linode started increasing their prices and it was clear that the main Mastodon instance was stable and well run.
I got deep into [[Mastodon]] today - mainly driven by Elon Musk's acquisition of Twitter, but also because the idea of a federated social network is quite interesting. The idea of owning my own piece of the network while still retaining connectivity appeals to me, who once tried to move off of Google's ecosystem and go completely self-hosted.
My Mastodon profile is [here](https://mastodon.tjpalanca.com/@tjpalanca), and you can follow me from any public or self-hosted server; Mastodon's protocols will take care of the communication between our nodes.
The terraform code to deploy onto the main kubernetes environment is in the [TJCloud Repo](https://github.com/tjpalanca/tjcloud/blob/master/modules/mastodon/main.tf). It requires the Mastodon Docker image, which is available on [Docker Hub](https://hub.docker.com/r/tootsuite/mastodon), a Postgres database, and a redis instance. There's an option to add ElasticSearch for full-text search capabilities but I didn't bother.
The main gotchas were ensuring that you had valid redirects for `/.well-known/host-meta` and `/.well-known/webfinger` at the root of the domain if you weren't serving Mastodon at the top level (I served mine out of `mastodon.tjpalanca.com`). I used nifty [Cloudflare redirect rules (in beta)](https://developers.cloudflare.com/rules/url-forwarding/dynamic-redirects/) to make that happen.
The user experience is better than I expected, although there are still quite a few rough edges. Some accounts I could not follow presumably due to some server incompatibility, and there's some sluggishness that is expected because of all the nodes that have to communicate. It is a usable experience though, so the crucial thing is just getting the right communities onto Mastodon so that it can be a viable alternative to Twitter.
## Hard economic times
Ever since the pandemic shut down every aspect of production globally for a good few months, I've been wondering where the economic devastation would hit. Now it's clear that those times are upon us, I've not worked in a [[recession]], and find myself wondering what I should do differently - do I prioritize job security, or building up savings, or do I just keep doing what I'm doing and hope for the best?
## What I've been reading
- [November 2022 FOMC Press Conference](https://www.youtube.com/watch?v=-1kznV38bCk) - Inflation is high, and the Fed continues to raise rates - FOMC meetings are super exciting again. The idea of steering whole economies with just a single policy instrument is so fascinating and brings out the old econ nerd in me.
- [The Philippines’ rural banks are facing an analog-to-digital existential crisis - The Ken (Paywalled)](https://the-ken.com/sea/story/the-philippines-rural-banks-are-facing-an-analog-to-digital-existential-crisis/) - The Philippine rural banking system is in a period of change due to: (a) increased capital requirements, (b) e-wallets coming for their deposit base, and (c) digitization with staff that are content to stay in less urban areas of the country. Send me a message if you'd like a gift link to the full article.
- [How dbt fails - Benn Stancil](https://benn.substack.com/p/how-dbt-fails) - Benn narrates the evolution of dbt and its company and does a "pre-mortem" on the company:
- dbt was initially sold without any preconditions - it's just SQL, but with the new semantic layer stuff introduced in 2022, it is no longer that simple, product development didn't keep up with demand, and it made dbt opaque.
- dbt is still a very good product, because it makes thousands of people capable of doing things they otherwise couldn't, but now it's an incumbent and it's going to have to continue to fight to stay relevant.
- honestly, this was a little depressing, but the fact that we can't imagine dbt Labs crashing and burning is remarkable.