Global directives on custom ports

Caddy fails to start when I make a wrong change, so it’s definitely accepting my config lol I’m editing the same Caddyfile directly and restarting, to ensure new changes apply on every systemd restart. But that’s neither here nor there as I removed the rewrite rules and will deal with them later.

Like I said, php_fastcgi is having trouble with my assets. It’s loading the PHP, but it’s not loading CSS, JS, and images. Adding the handle directives above made images work, but not CSS or JS. Removing the handle directives breaks images again. CSP and JS remain broken.

And I found a few posts discussing CSP nonces on Caddy. Some on an old forum, this issue on github with an allegedly working implementation that was criminally closed due to inactivity, and a couple posts on this current forum.