scribouilli-backend/dev/Caddyfile

15 lines
242 B
Caddyfile

{
auto_https off
debug
}
http://*.dev.lutaines.eu:8000 {
header Access-Control-Allow-Origin "*"
@domain header_regexp sub Host ([^\.]+)\..+
handle @domain {
root /websites/{re.sub.1}
file_server
}
}