Caddy how to proxy websocket,very urgent!

Thanks for every one if you can help me .
Like my title ,on caddy v2,i don’t know how to use caddy2 proxy websocket.in caddy1,i can write my caddyfile like this :

mydomain.me
{
  log ./caddy.log
  proxy /ray localhost:10000 {
    websocket
    header_upstream -Origin
  }
}

and in nginx ,just like follow config:

server {
  listen  443 ssl;
  ssl on;
  ssl_certificate       /etc/v2ray/v2ray.crt;
  ssl_certificate_key   /etc/v2ray/v2ray.key;
  ssl_protocols         TLSv1 TLSv1.1 TLSv1.2;
  ssl_ciphers           HIGH:!aNULL:!MD5;
  server_name           mydomain.me;
        location /ray { # v2ray path
        proxy_redirect off;
        proxy_pass http://127.0.0.1:10000;#v2ray listen port
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $http_host;

        # Show realip in v2ray access.log
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }
}

so can you help me?how to set same config on caddy2?

When i use adapter try to exchange a nginx config to caddy json,it is unuseful

[root@izj6c4a7xie8ey246dd5fkz bin]# caddy run --config v2rayProxy.conf --adapter nginx
2020/02/19 02:54:49.745	INFO	using provided configuration	{"config_file": "v2rayProxy.conf", "config_adapter": "nginx"}
run: unrecognized config adapter: nginx

Locked thread - this question is already being answered over here: