opnsense / plugins

OPNsense plugin collection
https://opnsense.org/
BSD 2-Clause "Simplified" License
849 stars 644 forks source link

www/caddy: Implement sequence into handlers to support custom configuration order #4292

Closed Monviech closed 1 month ago

Monviech commented 1 month ago

The current implementation auto generated an order for the handlers.

This has a lot of drawbacks, because everything is implicit and when a domain has multiple handlers that would need to be in a certain order to match, it was painful to clone/delete them and rearrange them with tricks in the GUI.

This PR here solves that issue once and for all by introducing a sequence number and a migration.

The migration will migrate all:

The PR also includes:

Monviech commented 1 month ago

Actually lets dont do this one. Not much benefit. The implicit order "JustWorksTM" since the beginning.