opnsense / plugins

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

www/caddy: Make access list handler more unique #4329

Closed Monviech closed 3 weeks ago

Monviech commented 3 weeks ago

Adding an access list to a wildcard domain and a subdomain will result in a validation error from caddy itself. Its hard to track down for the user why it happens.

Improving the template to always generate the handler of an access lists with more uniqueness can solve this arcane error.

It seems to be one of the more usual errors people trip over. I saw this often enough to fix this now.

PR: https://www.reddit.com/r/opnsense/s/qOxAK1PiiD