Configuration Remote Access Via Sub-domain

Dear All

Need some help. i am very new and without much knowledge.

So, my question is, how to configure nextcloud with my sub-domian ?

I have my nextcloud installed at Openmediavault NAS
I have also create a sub-domain ( at hostgator with setting up A record

Any help will be great appreciate.