testarena.nabd-co.com {
    # API and Auth
    handle /api/* {
        reverse_proxy backend:8000
    }
    handle /auth/* {
        reverse_proxy backend:8000
    }
    handle /admin/* {
        reverse_proxy backend:8000
    }
    handle /jobs/* {
        reverse_proxy backend:8000
    }
    
    # WebSocket
    handle /ws/* {
        reverse_proxy backend:8000
    }
    
    # Results (Mounted volume)
    handle /results/* {
        root * /srv
        file_server
    }

    # Frontend
    handle {
        reverse_proxy frontend:80
    }
}
