# Public browser playback for creator streams.
# /live/<creator> -> MediaMTX WebRTC
# /hls/<creator>  -> MediaMTX HLS fallback
stream.browndoggames.online {
    handle /hls/* {
        uri replace /hls /live 1
        reverse_proxy localhost:8888 {
            header_down Location ^/live/ /hls/
        }
    }

    handle /live/* {
        reverse_proxy localhost:8889
    }
}
