Compose cleaner v2 configurations with named routes

Configuring http routes in Caddy v2 JSON is quite straightforward already but can become less desirable when the levels of nesting increases as you add more routes and subroutes.

When it gets to that level, named routes can be leveraged for reusable http routes and cleaner configurations.

It supports JSON and any configuration format that does 1-1 translation to JSON including YAML and TOML.

Module Link: GitHub - abiosoft/caddy-named-routes: named routes support for Caddy v2

3 Likes

This topic was automatically closed after 14 days. New replies are no longer allowed.