Adding domain in the root directory

I have installed a web app that needs me to manually add a custom domain (as per an input by a user of this app) in my server with the same root directory as the script’s installation and the user needs to point his domain’s A record with my server.

I am new to Cyberpanel and I need some help in completing the first part of the process.

Can someone help me out, please?