Caddy Subdomain configuration

Description

I want to add a jitsi-meet server on the same Rocket-chat VPS.
i.e.
https://chat.com
https://videocall.chat.com

I have verified that I have jitsi correctly installed. The problem i have is configuring the caddyfile for the subdomain. I have investigated the caddy documentation and attempted adding the subdomain to the caddyfile and I have been unsuccessful. i opened a ticket with caddy. they replied it is a rocket chat configuration issue. I hace searched the community forum(rocketchat) and was unsuccessful finding what i am doing wrong. Does anyone else have a simular setup? What additional information do i need to provide?

Server Setup Information

  • Version of Rocket.Chat Server: 1.2.3
  • Operating System: Ubuntu 16.04.6
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Enabled
  • NodeJS Version: v8.11.3
  • MongoDB Version: 3.4.20
  • Proxy: caddy
  • Firewalls involved:

Any additional Information

any details on this?