Update 05
Hey folks, a small update after a long week:
Phx2Ban v0.2 Release
Alex and I released Phx2Ban v0.2 on Monday and it comes with some major new features. It now checks requests to your application against a list of ~85k known malicious IPs and blocks them for you. We also now support IPv6 and added many configuration options to tailor the library for your needs.
You can read all about it in the Changelog:
https://ezsuite.dev/docs/phx_2_ban/changelog.htmlBlog: Request Routing and Sticky Sessions in Fly.io
I spent quite some time researching how to use Fly's fly-replay
header for routing user requests to specific machines, regardless of their location. It wasn't trivial, but the final code is much simpler than expected, and I share it all in the blog post below:
Request Routing and Sticky Sessions in Phoenix on Fly.io
Learn to efficiently route requests to the right server using Fly.io's fly-replay header and sticky sessions with Phoenix.
Blog: Parse a Regex with NimbleOptions (and how to print out the type of a variable)
I wrote a small blog post about how I used the i/1
helper to identify the type returned by the Regex notation ~r/foo/
and how I used that information to allow regexes in a NimbleOptions option.
Parse a Regex with NimbleOptions
Learn how I discovered that ~r-sigils return Regex structs and how to include regex patterns as valid input in NimbleOptions.
And that's it!
You can read all my blog posts at peterullrich.com and contact me on Bluesky @peterullrich.com. Have a great week and until next time :)