This isn’t a problem with your global options, but instead a problem with this part:
The first issue is that you’re not using a block here, you must do so if you’re using more than one site block in your Caddyfile. See the docs on the structure of the Caddyfile:
The second is that you’re using the tls
directive with http://
which doesn’t make sense. If you need special handling for http://
then it needs to be a separate site block.