Did you create a public DNS record pointing to your NethServer? chat.mydomain.local seems a local domain name not resolvable by public DNS. That’s the reason it does not work from the web.
Before proceeding with the configuration, make sure to create the corresponding DNS record. If NethServer act as the DNS server of your LAN, please refer to DNS.