How do I configure in caddyFile max_idle_conns

reverse_proxy /api/* 127.0.0.1:8081 {
max_idle_conns 100
}
parsing caddyfile tokens for ‘reverse_proxy’: unrecognized subdirective max_idle_conns,

Check documentation:

You should instead write:

reverse_proxy /api/* 127.0.0.1:8081 {
    transport http {
        keepalive_idle_conns 100
    }
}

yaaa thank you vert much