pub async fn serve(
listener: TcpListener,
socket: &Path,
proxies: &[Origin],
stop: impl Future<Output = ()> + Send + 'static,
) -> Result<()>Expand description
Serves the dashboard on listener for the daemon whose API is on socket, until stop completes. Pages from
proxies ([web] origins), reverse proxies in front of it, may write too. Writes the one-time login URL to
login_file(socket) and removes it when done.