Yes. file_server functionality

Reply to this note

Please Login to reply.

Discussion

Will have to dig in and test that, thanks! Would be much cleaner :)

This is my setup basically. CORS can be done better (maybe with some integrated directive) I guess. But Caddy’s documentation can be a bit chaotic :D

{

email redacted

}

hex737472616e676572.net {

root * /static

file_server

header {

Access-Control-Allow-Origin *

Access-Control-Allow-Credentials true

Access-Control-Allow-Methods *

Access-Control-Allow-Headers *

}

}