Vars_regex plugin

I’ve created a new plugin that helped satisfy our reverse proxy requirements.

I tried to generalize it so it may be useful to others.

It’s still WIP but would greatly appreciate feedback from the caddy developer community.

Thanks!

1 Like

Interesting! Thanks for sharing this!

Just wondering, what does this help you do that the vars_regexp matcher does not? https://caddyserver.com/docs/json/apps/http/servers/routes/match/vars_regexp/

Hi Matt

I wanted to be able to use another placeholder to evaluate the regex against plus I needed to optionally overwrite or skip overwriting existing placeholders with the same name when generating the results.

I added a few examples towards the end of the README

Can you see a way of achieving the same using the vars_regexp matcher?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.