如何用Caddy反向代理Emqx实现单个端口复用?

我希望利用Caddy反向代理一个web前端站点,这个前端站点利用mqtt.js这个库 用WSS协议连接到服务器的emqx实例 如下配置无法连接请问有什么问题?

caddy反向代理配置:

:17001 {
        tls /data/certs/cert.pem /data/certs/key.pem
        file_server {
                root /var/lib/adc/dist
        }
        handle /prod-api/api/* {
                respond "Not Found" 404 {
                        close
                }
        }
        handle_path /prod-api/* {
                reverse_proxy http://127.0.0.1:17000
        }
        handle_path /oss/* {
                file_server {
                        root /var/lib/adc/file
                }
        }
        handle /mqtt {
                reverse_proxy http://127.0.0.1:8083
        }
}

部署emqx的docker配置文件

version: '3.1'
networks:
  rms-network:
    external: true
services:
  emqx:
    container_name: emqx
    image: emqx/emqx:latest
    ports:
      - 1883:1883
      - 9001:8083
      - 8084:8084
      - 18083:18083
    volumes:
      - ./emqx.conf:/opt/emqx/etc/emqx.conf
      - ./log:/opt/emqx/log
      - ./data:/opt/emqx/data
    networks:
      - rms-network

不太清楚,没用过 caddy。建议去 caddy 社区问问