:80, :443 {
    encode zstd gzip

    @hls path /hls/*
    handle @hls {
        uri strip_prefix /hls
        reverse_proxy mediamtx:8888
    }

    handle {
        reverse_proxy backend:5000
    }
}
