:8000 {
    file_server {
        root /caddy
        browse
    }

    header / {
        Access-Control-Allow-Origin *
    }
}

bedhttps {
    tls internal
    reverse_proxy 127.0.0.1:4002
}

wsbed {
    tls internal
    reverse_proxy 127.0.0.1:4002
}

wsbed2 {
    tls internal
    reverse_proxy 127.0.0.1:4002
}