flarum / docs

Flarum documentation.
https://docs.flarum.org
MIT License
66 stars 131 forks source link

Fix Caddy example #422

Closed francislavoie closed 2 years ago

francislavoie commented 2 years ago

Request matchers in Caddy are exact, so /assets would only match requests to exactly /assets but not /assets/app.js etc. Using the * is necessary to match all requests to files within that directory. See https://caddyserver.com/docs/caddyfile/matchers#path-matchers

davwheat commented 2 years ago

Would it be better to do /assets/*? I worry that if an extension added a page named /assets-xxx that it would then be inadvertently covered by this rule.

francislavoie commented 2 years ago

Yeah, fair enough