Custom domain with synology?

I just installed home assistant on my synology nas. I want to configure it to use a custom domain. I did the following:

  1. In synology -> control panel -> reverse proxy I create a role that redirects traffic from https://my.domain.com to http://local_ip:8123
  2. In synology -> control panel -> security -> certificate -> I created a certificate using lets encrypt for https://my.domain.com

When I go to https://my.domain.com I get the authentification screen. However, when I enter my credentials I get an error: Unable to connect to Home Assistant. What am I doing wrong?

Make sure that the Synology proxy is set up to support websockets. HA requires those.

Thanks! this link shows how to configure the websockets.