As written before, this one is a config in the mindset of Apache/nginx, it is completely unnecessary with Caddy, please remove it. Caddy redirects automatically to HTTPS by default.
These are superfluous as well since everything is proxied to 192.168.1.235, anyway. You would include the file_server directive if you only proxy certain things to the backend, like PHP files to a FastCGI server. In such a scenario file_server would then serve static files like images, otherwise the whole site would be broken.
Heh heh. One more step towards my mission to eradicate Apache usage everywhere ![]()
Well..
- turn Caddy into a Web Application Firewall with corazawaf.
- block bot and (AI) scraper traffic with Anubis.
- or use something more “lightweight” like caddy-defender.
Some of these need you to compile Caddy yourself, though, or in the case of Anubis, jump through some hoops (as with Anubis a second service would be running in the background). The easiest to do ad-hoc would be an @aibots matcher (thread, GitHub) blocking all known AI scrapers.