RSSAmplifier

Peter Ullrich Blog · Dec 2, 2024

Parse a Regex with NimbleOptions

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Today's post is a tiny one. I recently added a configuration option to Phx2ban that allows users to define routes that should be excluded from the Web Application Firewall (WAF) rules of Phx2ban. Basically, any request to any of the given routes should be ignored. I wanted to allow the user to define the routes as strings ( /my-path/foo ) but also as regex ( ~r/my-path/* ). We use NimbleOptions to…

Read on peterullrich.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.